Skip to content

Commit 0f7afd0

Browse files
authored
Merge pull request #73 from haasad/ci/expect-win-conda-failure
Invert pipeline success to detect future windows mkl fix
2 parents 9ef2095 + 4df3c0b commit 0f7afd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,18 @@ jobs:
8484
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
8585
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
8686
- name: Test with pytest
87+
id: tests
88+
continue-on-error: true
8789
shell: bash -l {0}
8890
run: |
8991
conda install pytest
9092
python -m pytest
93+
- name: invert failure
94+
if: ${{ steps.tests.outcome != 'success' && matrix.os == 'windows-latest' }}
95+
run: exit 0
96+
- name: invert success
97+
if: ${{ steps.tests.outcome == 'success' && matrix.os == 'windows-latest' }}
98+
run: exit 1
9199

92100
pip-tests:
93101
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)