Skip to content

Commit

Permalink
Run CD build despite "with-sslib-main" test error
Browse files Browse the repository at this point in the history
The CD build job requires a prior test jobs to run successfully. This
seems reasonable for all test jobs but "with-sslib-main", which runs
against the unreleased main branch of securesystemslib.

This patch changes the test job matrix to allow errors in the
"with-sslib-main" job, as described in GitHub docs:

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-preventing-a-specific-failing-matrix-job-from-failing-a-workflow-run

Signed-off-by: Lukas Puehringer <[email protected]>
  • Loading branch information
lukpueh committed Apr 10, 2024
1 parent 8ce403f commit 15b15e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ permissions: {}

jobs:
test:
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
# Run regular in-toto tests on each OS/Python combination, plus linters
Expand All @@ -14,13 +15,16 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
toxenv: [py]
experimental: [false]
include:
- python-version: '3.8'
os: ubuntu-latest
toxenv: lint
experimental: false
- python-version: 3.x
os: ubuntu-latest
toxenv: with-sslib-main
experimental: true

runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 15b15e6

Please sign in to comment.