Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request, workflow_dispatch]
4
5 env:
6 FORCE_COLOR: 1
7
8 concurrency:
9 # prettier-ignore
10 group: >-
11 ${{ github.workflow }}-
12 ${{ github.ref_type }}-
13 ${{ github.event.pull_request.number || github.sha }}
14 cancel-in-progress: true
15
16 jobs:
17 tests:
18 name: tests / ${{ matrix.os }} / ${{ matrix.python-version }}
19 runs-on: ${{ matrix.os }}-latest
20
21 strategy:
22 matrix:
23 os: [Windows, Ubuntu, MacOS]
24 python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
25 include:
26 # Only run PyPy jobs, on Ubuntu.
27 - os: Ubuntu
28 python-version: pypy3.10
29
30 steps:
31 - uses: actions/checkout@v4
32
33 # Get Python to test against
34 - uses: actions/setup-python@v5
35 with:
36 python-version: ${{ matrix.python-version }}
37 allow-prereleases: true
38 cache: pip
39
40 - run: pip install nox
41
42 # prettier-ignore
43 - run: >
44 nox
45 -s test-${{ matrix.python-version }}
46 doctest-${{ matrix.python-version }}
47 --error-on-missing-interpreters
48 if: matrix.python-version != 'pypy3.10'
49
50 - run: nox --error-on-missing-interpreters -s test-pypy3 doctest-pypy3
51 if: matrix.python-version == 'pypy3.10'