@@ -224,8 +224,9 @@ jobs:
224
224
git describe
225
225
226
226
# Set flag in a delayed manner to avoid issues with installing other
227
- # packages
228
- if [[ "${{ runner.os }}" != 'macOS' ]]; then
227
+ # packages. Only enabling coverage on minimum versions run as both
228
+ # need building using --no-build-isolation.
229
+ if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
229
230
if [[ "$(lsb_release -r -s)" == "20.04" ]]; then
230
231
export CPPFLAGS='--coverage -fprofile-abs-path'
231
232
else
@@ -242,9 +243,13 @@ jobs:
242
243
243
244
# All dependencies must have been pre-installed, so that the minver
244
245
# constraints are held.
245
- python -m pip install --no-deps -ve .
246
+ if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
247
+ python -m pip install --no-deps --no-build-isolation -ve .
248
+ else
249
+ python -m pip install --no-deps -ve .
250
+ fi
246
251
247
- if [[ "${{ runner.os }}" != 'macOS ' ]]; then
252
+ if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions) ' ]]; then
248
253
unset CPPFLAGS
249
254
fi
250
255
@@ -266,7 +271,7 @@ jobs:
266
271
--extract coverage.info $PWD/src/'*' $PWD/lib/'*'
267
272
lcov --list coverage.info
268
273
find . -name '*.gc*' -delete
269
- if : ${{ runner.os != 'macOS ' }}
274
+ if : ${{ matrix.name-suffix == '(Minimum Versions) ' }}
270
275
- name : Upload code coverage
271
276
uses : codecov/codecov-action@v3
272
277
0 commit comments