Skip to content

Commit

Permalink
Save diff files of failed CI tests as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Jul 26, 2023
1 parent 5e54584 commit b55d7f9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/backend-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ jobs:
run: |
apptainer exec ${{github.workspace}}/devel-tools/CentOS7-devel.sif \
./run_tests.sh ${{github.workspace}}/${{ inputs.backend_name }}-source/${{ inputs.rpath_exe }} 0??_*
continue-on-error: true

- name: Save failed library test artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failed-library-test-diffs
path: ${{ inputs.test_lib_directory }}/*/*.diff

- name: Run regression tests for ${{ inputs.backend_name }} interface code
if: ${{ inputs.test_interface_directory }}
Expand All @@ -167,3 +175,12 @@ jobs:
run: |
apptainer exec ${{github.workspace}}/devel-tools/CentOS7-devel.sif \
./run_tests.sh ${{github.workspace}}/${{ inputs.backend_name }}-source/${{ inputs.rpath_exe }}
continue-on-error: true

- name: Save failed interface test artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failed-interface-test-diffs
path: ${{ inputs.test_interface_directory }}/*/*.diff

0 comments on commit b55d7f9

Please sign in to comment.