Debian Codegraph @

.github/workflows/ci-tests.yml

raw
1 name: Build and test
2
3 on:
4 # Build on pushes to master
5 push:
6 branches:
7 - master
8 # Temporarily add for CI on stevepiercy's fork
9 - sphinx-40-compat
10 tags:
11 # Build pull requests
12 pull_request:
13
14 jobs:
15 test:
16 strategy:
17 fail-fast: true
18 matrix:
19 py:
20 - "3.10"
21 - "3.11"
22 - "3.12"
23 - "3.13"
24 - "3.14"
25 - "pypy-3.11"
26 os:
27 - "ubuntu-latest"
28
29 name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
30 runs-on: ${{ matrix.os }}
31 steps:
32 - uses: actions/checkout@v2
33 - name: Setup Python
34 uses: actions/setup-python@v2
35 with:
36 python-version: ${{ matrix.py }}
37 architecture: ${{ matrix.architecture }}
38 - run: pip install tox
39 - name: Running tox
40 run: tox -e py -- ${{ matrix.pytest-args }}
41 # This block is temporarily commented out to speed up testing and until I add
42 # a lint tox env.
43 # lint:
44 # runs-on: ubuntu-latest
45 # name: Lint the package
46 # steps:
47 # - uses: actions/checkout@v2
48 # - name: Setup python
49 # uses: actions/setup-python@v2
50 # with:
51 # python-version: 3.10
52 # architecture: x64
53 # - run: pip install tox
54 # - run: tox -e lint