Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: ci
2
3 on:
4 push:
5 branches:
6 - main
7 - test-me-*
8 pull_request:
9 branches:
10 - main
11
12 concurrency:
13 group: ${{ github.workflow }}-${{ github.ref }}
14 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15
16 defaults:
17 run:
18 shell: bash
19
20 env:
21 LANG: en_US.utf-8
22 LC_ALL: en_US.utf-8
23 PYTHONIOENCODING: UTF-8
24 PYTHONWARNDEFAULTENCODING: "1"
25 PYTHON_VERSIONS: ""
26
27 jobs:
28
29 quality:
30 strategy:
31 matrix:
32 os:
33 - ubuntu-latest
34 - macos-latest
35 - windows-latest
36 python-version:
37 - "3.10"
38 - "3.14"
39 include:
40 - os: ubuntu-latest
41 python-version: "3.11"
42 - os: ubuntu-latest
43 python-version: "3.12"
44 - os: ubuntu-latest
45 python-version: "3.13"
46 - os: ubuntu-latest
47 python-version: "3.15-dev"
48
49 runs-on: ${{ matrix.os }}
50 continue-on-error: true
51
52 steps:
53 - name: Checkout
54 uses: actions/checkout@v4
55 with:
56 fetch-depth: 0
57 fetch-tags: true
58
59 - name: Setup Graphviz
60 uses: ts-graphviz/setup-graphviz@v2
61
62 - name: Setup Python
63 uses: actions/setup-python@v6
64 with:
65 python-version: ${{ matrix.python-version }}
66
67 - name: Setup uv
68 uses: astral-sh/setup-uv@v5
69 with:
70 enable-cache: true
71 cache-dependency-glob: pyproject.toml
72
73 - name: Install dependencies
74 run: make setup
75
76 - name: Check if the documentation builds correctly
77 run: make check-docs
78
79 - name: Check the code quality
80 run: make check-quality
81
82 - name: Check if the code is correctly typed
83 run: make check-types
84
85 - name: Check for breaking changes in the API
86 run: make check-api
87
88 - name: Store objects inventory for tests
89 uses: actions/upload-artifact@v4
90 if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
91 with:
92 name: objects.inv
93 path: site/objects.inv
94
95 tests:
96
97 needs:
98 - quality
99 strategy:
100 matrix:
101 os:
102 - ubuntu-latest
103 - macos-latest
104 - windows-latest
105 python-version:
106 - "3.10"
107 - "3.11"
108 - "3.12"
109 - "3.13"
110 - "3.14"
111 - "3.15-dev"
112 resolution:
113 - highest
114 - lowest-direct
115 exclude:
116 - os: macos-latest
117 resolution: lowest-direct
118 - os: windows-latest
119 resolution: lowest-direct
120
121 runs-on: ${{ matrix.os }}
122 continue-on-error: true
123
124 steps:
125 - name: Checkout
126 uses: actions/checkout@v4
127 with:
128 fetch-depth: 0
129 fetch-tags: true
130
131 - name: Setup Python
132 uses: actions/setup-python@v6
133 with:
134 python-version: ${{ matrix.python-version }}
135 allow-prereleases: true
136
137 - name: Setup uv
138 uses: astral-sh/setup-uv@v5
139 with:
140 enable-cache: true
141 cache-dependency-glob: pyproject.toml
142 cache-suffix: ${{ matrix.resolution }}
143
144 - name: Install dependencies
145 env:
146 UV_RESOLUTION: ${{ matrix.resolution }}
147 run: make setup
148
149 - name: Download objects inventory
150 uses: actions/download-artifact@v4
151 with:
152 name: objects.inv
153 path: site/
154
155 - name: Run the test suite
156 run: make test