Debian Codegraph @

.github/workflows/tests.yaml

raw symbols SCIP
1 name: Tests
2 on:
3 push:
4 branches: [main, stable]
5 paths-ignore: ['docs/**', '*.md', '*.rst']
6 pull_request:
7 paths-ignore: [ 'docs/**', '*.md', '*.rst' ]
8 jobs:
9 tests:
10 name: ${{ matrix.name || matrix.python }}
11 runs-on: ${{ matrix.os || 'ubuntu-latest' }}
12 strategy:
13 fail-fast: false
14 matrix:
15 include:
16 - {python: '3.13'}
17 - {python: '3.12'}
18 - {python: '3.11'}
19 - {python: '3.10'}
20 - {python: '3.9'}
21 steps:
22 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23 - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
24 with:
25 python-version: ${{ matrix.python }}
26 allow-prereleases: true
27 cache: pip
28 cache-dependency-path: requirements*/*.txt
29 - run: pip install tox
30 - run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
31 typing:
32 runs-on: ubuntu-latest
33 steps:
34 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35 - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
36 with:
37 python-version: '3.x'
38 cache: pip
39 cache-dependency-path: requirements*/*.txt
40 - name: cache mypy
41 uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
42 with:
43 path: ./.mypy_cache
44 key: mypy|${{ hashFiles('pyproject.toml') }}
45 - run: pip install tox
46 - run: tox run -e typing