| 1 |
name: Test suite |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
unit_tests: |
| 7 |
runs-on: ${{matrix.os}} |
| 8 |
strategy: |
| 9 |
max-parallel: 8 |
| 10 |
matrix: |
| 11 |
os: [ubuntu-22.04, ubuntu-latest, macos-14, macos-latest] |
| 12 |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v4 |
| 15 |
- uses: actions/setup-python@v5 |
| 16 |
with: |
| 17 |
python-version: ${{matrix.python-version}} |
| 18 |
- run: | |
| 19 |
if [[ $(uname) == Linux ]]; then sudo apt-get install --no-install-recommends python3-lxml python3-certifi; fi |
| 20 |
- run: make install |
| 21 |
- if: ${{matrix.python-version == '3.12'}} |
| 22 |
run: make lint |
| 23 |
- run: make test |
| 24 |
- uses: codecov/codecov-action@v5 |
| 25 |
if: ${{matrix.python-version == '3.12' && matrix.os == 'ubuntu-24.04'}} |
| 26 |
isort: |
| 27 |
runs-on: ubuntu-22.04 |
| 28 |
steps: |
| 29 |
- uses: actions/checkout@v4 |
| 30 |
- uses: isort/[email protected] |
| 31 |
ruff: |
| 32 |
runs-on: ubuntu-latest |
| 33 |
steps: |
| 34 |
- uses: actions/checkout@v4 |
| 35 |
- uses: astral-sh/ruff-action@v1 |
| 36 |
- uses: astral-sh/ruff-action@v1 |
| 37 |
with: |
| 38 |
args: "format --check" |