Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54efcae

Browse files
committed
Don't use build isolation on minimum versions CI run
1 parent c127355 commit 54efcae

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ jobs:
224224
git describe
225225
226226
# 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
229230
if [[ "$(lsb_release -r -s)" == "20.04" ]]; then
230231
export CPPFLAGS='--coverage -fprofile-abs-path'
231232
else
@@ -242,9 +243,13 @@ jobs:
242243
243244
# All dependencies must have been pre-installed, so that the minver
244245
# 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
246251
247-
if [[ "${{ runner.os }}" != 'macOS' ]]; then
252+
if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then
248253
unset CPPFLAGS
249254
fi
250255
@@ -266,7 +271,7 @@ jobs:
266271
--extract coverage.info $PWD/src/'*' $PWD/lib/'*'
267272
lcov --list coverage.info
268273
find . -name '*.gc*' -delete
269-
if: ${{ runner.os != 'macOS' }}
274+
if: ${{ matrix.name-suffix == '(Minimum Versions)' }}
270275
- name: Upload code coverage
271276
uses: codecov/codecov-action@v3
272277

0 commit comments

Comments
 (0)