Debian Codegraph @

.github/workflows/tests.yml

raw
1 name: Tests
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9 concurrency:
10 group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name != 'pull_request' && github.sha || '' }}
11 cancel-in-progress: true
12
13 jobs:
14 quality:
15 name: 🧑‍🏭 Quality & Docs
16 runs-on: ubuntu-latest
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v4
20
21 - name: Set up Python
22 uses: actions/setup-python@v5
23 with:
24 python-version: "3.13"
25 cache: pip
26
27 - name: Install dependencies
28 run: python -m pip install tox
29
30 - name: Run linters
31 run: python -m tox -q -e types,lint
32
33 - name: Build the documentation
34 run: python -m tox -q -e docs
35
36 tox:
37 name: ${{ matrix.tox.name }} ${{ matrix.os.emoji }} ${{ matrix.os.name }} ${{ matrix.python }}
38 runs-on: ${{ matrix.os.runs-on }}
39 timeout-minutes: 15
40 strategy:
41 fail-fast: false
42 matrix:
43 os:
44 - name: Linux
45 matrix: linux
46 emoji: 🐧
47 runs-on: [ubuntu-latest]
48 - name: macOS
49 matrix: macos
50 emoji: 🍎
51 runs-on: [macos-latest]
52 - name: Windows
53 matrix: windows
54 emoji: 🪟
55 runs-on: [windows-latest]
56 python:
57 - "3.9"
58 - "3.10"
59 - "3.11"
60 - "3.12"
61 - "3.13"
62 - "pypy-3.9"
63 exclude:
64 - os:
65 matrix: macos
66 python: "pypy-3.9"
67 - os:
68 matrix: windows
69 python: "pypy-3.9"
70
71 steps:
72 - name: Checkout
73 uses: actions/checkout@v4
74
75 - name: Set up Python ${{ matrix.python }}
76 uses: actions/setup-python@v5
77 with:
78 python-version: ${{ matrix.python }}
79 cache: pip
80
81 - name: Install dependencies
82 run: python -m pip install tox
83
84 - name: Run tests
85 run: python -m tox -q -e py