Debian Codegraph @

.github/workflows/tests.yaml

raw
1 name: Tests
2 on:
3 push:
4 branches:
5 - main
6 - "*.x"
7 paths-ignore:
8 - "docs/**"
9 - "*.md"
10 - "*.rst"
11 pull_request:
12 paths-ignore:
13 - "docs/**"
14 - "*.md"
15 - "*.rst"
16 jobs:
17 tests:
18 name: ${{ matrix.name || matrix.python }}
19 runs-on: ${{ matrix.os || 'ubuntu-latest' }}
20 strategy:
21 fail-fast: false
22 matrix:
23 include:
24 - { python: "3.14" }
25 - { python: "3.13" }
26 - { python: "3.12" }
27 - { python: "3.11" }
28 - { python: "3.10" }
29 - { name: "typing", tox: "typing", python: "3.14" }
30 steps:
31 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32 - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
33 with:
34 enable-cache: true
35 - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
36 with:
37 python-version: ${{ matrix.python }}
38 allow-prereleases: true
39 - run: uv sync --group dev
40 - run: uv run tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}