Debian Codegraph @

.github/workflows/tests.yaml

raw
1 name: Tests
2
3 on:
4 push:
5 pull_request:
6 workflow_dispatch:
7
8 permissions:
9 contents: read
10
11 jobs:
12 test:
13 runs-on: ubuntu-latest
14 strategy:
15 fail-fast: false
16 matrix:
17 python-version: ["3.12", "3.13", "3.14"]
18
19 steps:
20 - name: Checkout
21 uses: actions/checkout@v4
22
23 - name: Set up Python ${{ matrix.python-version }}
24 uses: actions/setup-python@v5
25 with:
26 python-version: ${{ matrix.python-version }}
27
28 - name: Set up uv
29 uses: astral-sh/setup-uv@v6
30
31 - name: Install dependencies
32 run: uv sync --locked --extra dev
33
34 - name: Lint
35 if: matrix.python-version == '3.12'
36 run: |
37 uv run --locked --extra dev ruff check aioacaia tests run.py
38 uv run --locked --extra dev ruff format --check aioacaia tests run.py
39
40 - name: Type check
41 if: matrix.python-version == '3.12'
42 run: uv run --locked --extra dev mypy aioacaia tests run.py test.py
43
44 - name: Test
45 run: uv run --locked --extra dev pytest -q