Debian Codegraph @

.github/workflows/_test.yaml

raw symbols SCIP
1 name: Test & Lint
2
3 on:
4 workflow_call:
5
6 jobs:
7 lint:
8 name: Lint
9 runs-on: ubuntu-latest
10
11 steps:
12 - name: Checkout the code
13 uses: actions/checkout@v6
14
15 - name: Install `uv`
16 run: |
17 curl -LsSf https://astral.sh/uv/install.sh | sh
18
19 - name: Lint with `ruff`
20 run: |
21 uv run ruff check
22
23 - name: Format with `ruff`
24 run: |
25 uv run ruff format --check
26
27 test:
28 name: Test (Python ${{ matrix.python-version }})
29
30 strategy:
31 matrix:
32 python-version:
33 - "3.10"
34 - "3.11"
35 - "3.12"
36
37 fail-fast: false
38
39 runs-on: ubuntu-latest
40
41 steps:
42 - name: Checkout the code
43 uses: actions/checkout@v6
44
45 - name: Install `uv`
46 run: |
47 curl -LsSf https://astral.sh/uv/install.sh | sh
48
49 - name: Set up Python ${{ matrix.python-version }}
50 uses: actions/setup-python@v6
51 with:
52 python-version: ${{ matrix.python-version }}
53
54 - name: Run tests
55 run: |
56 uv run pytest -v