|
a |
|
b/.github/workflows/tests.yaml |
|
|
1 |
name: Run tests |
|
|
2 |
|
|
|
3 |
on: |
|
|
4 |
push: |
|
|
5 |
branches: |
|
|
6 |
- main |
|
|
7 |
pull_request: |
|
|
8 |
branches: |
|
|
9 |
- main |
|
|
10 |
|
|
|
11 |
jobs: |
|
|
12 |
test: |
|
|
13 |
|
|
|
14 |
runs-on: ${{ matrix.os }} |
|
|
15 |
strategy: |
|
|
16 |
fail-fast: false |
|
|
17 |
matrix: |
|
|
18 |
os: ["ubuntu-latest", "macos-latest"] |
|
|
19 |
python-version: ["3.9", "3.10", "3.11"] |
|
|
20 |
|
|
|
21 |
steps: |
|
|
22 |
- uses: actions/checkout@v3 |
|
|
23 |
- name: Set up Python ${{ matrix.python-version }} |
|
|
24 |
uses: actions/setup-python@v3 |
|
|
25 |
with: |
|
|
26 |
python-version: ${{ matrix.python-version }} |
|
|
27 |
- name: Install dependencies |
|
|
28 |
run: | |
|
|
29 |
python -m pip install --upgrade pip |
|
|
30 |
python -m pip install pytest |
|
|
31 |
python -m pip install -e . |
|
|
32 |
- name: Python tests |
|
|
33 |
run: | |
|
|
34 |
pytest tests |