-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.04 KB
/
ci_run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Automated Tests
on:
push:
branches:
- '**' # matches every branch
- '!gh-pages' # excludes gh-pages
pull_request:
branches:
- '**' # matches every branch
- '!gh-pages' # excludes gh-pages
permissions:
contents: read
jobs:
build:
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi
- name: Build package
run: python -m build --wheel
- name: Install Package
run: pip install dist/*
- name: Run tests with pytest
run: pytest tests