Skip to content

Commit 97122f0

Browse files
committed
continue on error, fail last
1 parent 2c46e21 commit 97122f0

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/template-pr-ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,24 @@ jobs:
1414
python-version: ["3.12"]
1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: setup-pixi
17+
- name: Setup pixi
1818
uses: prefix-dev/setup-pixi@v0.8.3
19-
- name: Run tests
19+
- name: Run integration tests
20+
id: tests
2021
run: pixi run test-integration
21-
- name: Run linting
22+
continue-on-error: true
23+
- name: Run snakemake linting
24+
id: linting
2225
run: pixi run snakemake --lint
23-
- name: Archive integration test artifacts
26+
continue-on-error: true
27+
- name: Save integration logs
2428
if: ${{ always() }}
2529
uses: actions/upload-artifact@v4
2630
with:
2731
name: integration-test-logs-${{ matrix.os }}
2832
path: tests/integration/results/integration_test/logs
33+
if-no-files-found: ignore
2934
retention-days: 30
35+
- name: Fail if integration or linting failed
36+
if: ${{ steps.tests.outcome == 'failure' || steps.linting.outcome == 'failure' }}
37+
run: exit 1

0 commit comments

Comments
 (0)