| 1 |
name: test |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- main |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- main |
| 9 |
jobs: |
| 10 |
lint: |
| 11 |
name: lint |
| 12 |
runs-on: ubuntu-latest |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v2 |
| 15 |
- uses: actions/setup-python@v2 |
| 16 |
- name: "Installs dependencies" |
| 17 |
run: | |
| 18 |
pip install -U uv |
| 19 |
uv sync --group dev --group test |
| 20 |
pip install -e . |
| 21 |
- run: make lint |
| 22 |
tests: |
| 23 |
name: tests |
| 24 |
strategy: |
| 25 |
matrix: |
| 26 |
python: ["3.11", "3.12", "3.13"] |
| 27 |
fail-fast: false |
| 28 |
runs-on: ubuntu-latest |
| 29 |
steps: |
| 30 |
- uses: actions/checkout@v2 |
| 31 |
- uses: actions/setup-python@v2 |
| 32 |
with: |
| 33 |
python-version: ${{ matrix.python }} |
| 34 |
- name: "Installs dependencies" |
| 35 |
run: | |
| 36 |
pip install -U uv |
| 37 |
uv sync --group dev --group test |
| 38 |
pip install -e . |
| 39 |
- run: make test |