Skip to content

Commit 9763872

Browse files
committed
test: test both coverage builds in CI
1 parent 2272ebd commit 9763872

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

.github/workflows/buildwheel.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-python@v5
1919
with:
20-
python-version: '3.12'
20+
python-version: '3.13'
2121

2222
- uses: msys2/setup-msys2@v2
2323
with:
@@ -65,7 +65,7 @@ jobs:
6565

6666
- uses: actions/setup-python@v5
6767
with:
68-
python-version: '3.12'
68+
python-version: '3.13'
6969

7070
- run: bin/install_latest_flint_ubuntu.sh
7171
- run: pip install build
@@ -111,7 +111,7 @@ jobs:
111111
- uses: actions/checkout@v4
112112
- uses: actions/setup-python@v5
113113
with:
114-
python-version: '3.12'
114+
python-version: '3.13'
115115
- run: sudo apt-get update
116116
- run: sudo apt-get install libflint-dev
117117
- run: pip install .
@@ -124,7 +124,7 @@ jobs:
124124
- uses: actions/checkout@v4
125125
- uses: actions/setup-python@v5
126126
with:
127-
python-version: '3.12'
127+
python-version: '3.13'
128128
- run: bin/install_latest_flint_ubuntu.sh
129129
- run: pip install --upgrade pip
130130
- run: pip install -r requirements-dev.txt
@@ -139,7 +139,7 @@ jobs:
139139
- uses: actions/checkout@v4
140140
- uses: actions/setup-python@v5
141141
with:
142-
python-version: '3.12'
142+
python-version: '3.13'
143143
- run: sudo apt-get update
144144
- run: sudo apt-get install libflint-dev
145145
# The versions of cython and meson-python here should be kept in sync
@@ -166,7 +166,7 @@ jobs:
166166
- uses: actions/checkout@v4
167167
- uses: actions/setup-python@v5
168168
with:
169-
python-version: '3.12'
169+
python-version: '3.13'
170170
- run: bin/install_flint_ubuntu.sh ${{ matrix.flint-tag }}
171171
- run: pip install .
172172
- run: python -m flint.test --verbose
@@ -179,7 +179,7 @@ jobs:
179179
- uses: actions/checkout@v4
180180
- uses: actions/setup-python@v5
181181
with:
182-
python-version: '3.12'
182+
python-version: '3.13'
183183
- run: bin/install_flint_ubuntu.sh main
184184
# Need to disable flint version check to build against main
185185
- run: pip install --config-settings=setup-args="-Dflint_version_check=false" .
@@ -193,12 +193,23 @@ jobs:
193193
- uses: actions/checkout@v4
194194
- uses: actions/setup-python@v5
195195
with:
196-
python-version: '3.12'
196+
python-version: '3.13'
197+
- run: sudo apt-get update
198+
- run: sudo apt-get install libflint-dev
199+
- run: pip install -r requirements-dev.txt
200+
- run: bin/coverage_setuptools.sh
201+
202+
# Test that we can make a coverage build and report coverage
203+
test_coverage_build:
204+
name: Test coverage meson build
205+
runs-on: ubuntu-24.04
206+
steps:
207+
- uses: actions/checkout@v4
208+
- uses: actions/setup-python@v5
209+
with:
210+
python-version: '3.13'
197211
- run: sudo apt-get update
198212
- run: sudo apt-get install libflint-dev
199-
# Need Cython's master branch until 3.1 is released because of:
200-
# https://github.com/cython/cython/pull/6341
201-
- run: pip install git+https://github.com/cython/cython.git@master
202213
- run: pip install -r requirements-dev.txt
203214
- run: bin/coverage.sh
204215

@@ -210,7 +221,7 @@ jobs:
210221
fail-fast: false
211222
matrix:
212223
os: [ubuntu-24.04]
213-
python-version: ['3.13-dev']
224+
python-version: ['3.13', '3.14-dev']
214225
steps:
215226
- uses: actions/checkout@v4
216227
# Can't use actions/setup-python
@@ -245,7 +256,7 @@ jobs:
245256
- uses: actions/checkout@v4
246257
- uses: actions/setup-python@v5
247258
with:
248-
python-version: '3.12'
259+
python-version: '3.13'
249260
- run: sudo apt-get update
250261
- run: sudo apt-get install libflint-dev
251262
- run: pip install .

bin/coverage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ RC="--rcfile=.coveragerc.meson"
1919

2020
# See https://github.com/cython/cython/issues/6658
2121
# Needed for Python 3.13 only
22-
#pip uninstall cython
23-
#pip install git+https://github.com/cython/cython.git@fdbca99
22+
pip uninstall cython
23+
pip install git+https://github.com/cython/cython.git@fdbca99
2424

2525
meson setup build -Dcoverage=true
2626
spin run -- coverage run $RC -m flint.test $@

bin/coverage_setuptools.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#!/bin/bash
22

3+
set -e
4+
35
RC="--rcfile=.coveragerc.setuptools"
46

57
# Comment out various lines below for speed if running multiple times.
68

79
# See https://github.com/cython/cython/issues/6658
810
# Needed for Python 3.13 only
9-
#pip uninstall cython
10-
#pip install git+https://github.com/cython/cython.git@fdbca99
11+
pip uninstall cython
12+
pip install git+https://github.com/cython/cython.git@fdbca99
1113

1214
touch src/*/*/*.pyx
1315
PYTHON_FLINT_COVERAGE=1 python setup.py build_ext --inplace

0 commit comments

Comments
 (0)