Skip to content

Commit

Permalink
Expect jobs to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 9, 2024
1 parent dcc07ec commit 569eaa3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,28 @@ jobs:
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- uses: druzsan/setup-matrix@feature/use-python-dockerfile
- id: expected-to-fail
uses: druzsan/setup-matrix@feature/use-python-dockerfile
continue-on-error: true
- if: steps.expected-to-fail.outcome != 'failure'
run: echo "Step expected to fail didn't fail" && exit 1
setup-matrix-windows:
runs-on: windows-latest
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- uses: druzsan/setup-matrix@feature/use-python-dockerfile
- id: expected-to-fail
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: '{ os: [ubuntu-latest, windows-latest] }'
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
continue-on-error: true
- if: steps.expected-to-fail.outcome != 'failure'
run: echo "Step expected to fail didn't fail" && exit 1
setup-matrix-macos:
runs-on: macos-latest
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- uses: druzsan/setup-matrix@feature/use-python-dockerfile
- id: expected-to-fail
uses: druzsan/setup-matrix@feature/use-python-dockerfile
with:
matrix: '{ os: [ubuntu-latest, windows-latest] }'
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
continue-on-error: true
- if: steps.expected-to-fail.outcome != 'failure'
run: echo "Step expected to fail didn't fail" && exit 1

0 comments on commit 569eaa3

Please sign in to comment.