From 569eaa3d65a3810610f7ddf128eab591391a3dc5 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 9 Feb 2024 10:49:34 +0100 Subject: [PATCH] Expect jobs to fail --- .github/workflows/integration-test.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 01af9c3..d74bde0 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -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