Debian Codegraph @

.github/workflows/test.yml

raw
1 # This workflow will install Python dependencies, run tests and lint
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
4 name: Test
5
6 on:
7 push:
8 branches: [main]
9 pull_request:
10 branches: [main]
11
12 jobs:
13 build:
14 runs-on: ubuntu-latest
15 strategy:
16 matrix:
17 python-version:
18 - "3.11"
19 - "3.12"
20 - "3.13"
21 - "3.14"
22 steps:
23 - uses: actions/[email protected]
24 with:
25 fetch-depth: 2
26 - name: Set up Python ${{ matrix.python-version }}
27 uses: actions/[email protected]
28 with:
29 python-version: ${{ matrix.python-version }}
30 - name: Install dependencies
31 run: |
32 pip install uv tox tox-gh-actions tox-uv
33 - name: Test with tox
34 run: tox
35 - name: Upload coverage to Codecov
36 uses: codecov/codecov-action@v5
37 with:
38 token: ${{ secrets.CODECOV_TOKEN }}