@@ -120,36 +120,38 @@ jobs:
120120 - run : pip install --no-index --find-links wheelhouse python_flint
121121 - run : python -m flint.test --verbose
122122
123- test_pip_vcs_sdist :
124- name : pip install ${{ matrix.target }} on ${{ matrix.python-version }}
125- runs-on : ubuntu-22.04
123+ # On new enough Ubuntu we can build against the system deb.
124+ test_pip_flint_deb :
125+ name : Build on ${{ matrix.os }}
126+ runs-on : ${{ matrix.os }}
126127 strategy :
127128 fail-fast : false
128129 matrix :
129- python-version : ['3.11', '3.12', '3.13-dev']
130- # '.' means install from python-flint git checkout
131- # 'python-flint' means install from PyPI sdist
132- target : ['.', 'python-flint']
130+ os : [ubuntu-24.04]
133131 steps :
134132 - uses : actions/checkout@v4
135133 - uses : actions/setup-python@v5
136134 with :
137- python-version : ${{ matrix.python-version }}
138- - run : bin/pip_install_ubuntu.sh ${{ matrix.target }}
135+ python-version : ' 3.12'
136+ - run : sudo apt-get update
137+ - run : sudo apt-get install libflint-dev
138+ - run : pip install .
139139 - run : python -m flint.test --verbose
140140
141+ # For older Ubuntu we have to build Flint >= 3.0.0
141142 test_flint_versions :
142- name : Test flint ${{ matrix.flinttag }}
143+ name : Test flint ${{ matrix.flint-tag }}
143144 runs-on : ubuntu-22.04
144145 strategy :
145146 fail-fast : false
146147 matrix :
147148 # Supported versions and latest git
148- flinttag : ['v3.0.0', 'v3.0.1', 'v3.1.0', 'main']
149+ flint-tag : ['v3.0.0', 'v3.0.1', 'v3.1.0', 'v3.1.1', 'v3.1.2 ', 'main']
149150 steps :
150151 - uses : actions/checkout@v4
151152 - uses : actions/setup-python@v5
152153 with :
153- python-version : 3.12
154- - run : bin/pip_install_ubuntu.sh . ${{ matrix.flinttag }}
154+ python-version : ' 3.12'
155+ - run : bin/install_flint_ubuntu.sh ${{ matrix.flint-tag }}
156+ - run : pip install .
155157 - run : python -m flint.test --verbose
0 commit comments