Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54efcae

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

File tree

Expand file treeCollapse file tree

1 file changed

+10
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-5
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+10-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.