Skip to content

Commit 0be949b

Browse files
committed
Use Pthon 3.12 for meson coverage job
1 parent 7b112e9 commit 0be949b

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/buildwheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ jobs:
200200
- run: bin/coverage_setuptools.sh
201201

202202
# Test that we can make a coverage build and report coverage
203-
test_coverage_build:
203+
test_coverage_build_meson:
204204
name: Test coverage meson build
205205
runs-on: ubuntu-24.04
206206
steps:
207207
- uses: actions/checkout@v4
208208
- uses: actions/setup-python@v5
209209
with:
210-
python-version: '3.13'
210+
python-version: '3.12' # does not work with 3.13
211211
- run: sudo apt-get update
212212
- run: sudo apt-get install libflint-dev
213213
- run: pip install -r requirements-dev.txt

bin/coverage.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/bin/bash
22
#
3-
# This needs a patched Cython:
4-
#
5-
# pip install git+https://github.com/oscarbenjamin/cython.git@pr_relative_paths
6-
#
7-
# That patch has been submitted as a pull request:
8-
#
9-
# https://github.com/cython/cython/pull/6341
10-
#
113
# Arguments to this script are passed to python -m flint.test e.g. to skip
124
# doctests and run in quiet mode:
135
#
@@ -18,9 +10,13 @@ set -o errexit
1810
RC="--rcfile=.coveragerc.meson"
1911

2012
# See https://github.com/cython/cython/issues/6658
21-
# Needed for Python 3.13 only
13+
# Needed for Python 3.13 only but the plugin does not work with 3.13 anyway...
14+
#pip uninstall -y cython
15+
#pip install git+https://github.com/cython/cython.git@fdbca99
16+
2217
pip uninstall -y cython
23-
pip install git+https://github.com/cython/cython.git@fdbca99
18+
pip install --pre cython # unpinned to pick up new releases in CI
19+
# pip install cython==3.1.0a1 # known working version for Python < 3.13
2420

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

0 commit comments

Comments
 (0)