Skip to content

Commit

Permalink
Save failed CI test diffs as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Jul 26, 2023
1 parent 8294c02 commit 990b1aa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/backend-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,25 @@ jobs:
apptainer exec ${{github.workspace}}/devel-tools/CentOS7-devel.sif \
./run_tests.sh ${{github.workspace}}/${{ inputs.backend_name }}-source/${{ inputs.rpath_exe }} 0??_*
- name: Save failed library test artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failed-library-test-diffs-${{ inputs.backend_name }}
path: ${{ inputs.test_lib_directory }}/*/*.diff

- name: Run regression tests for ${{ inputs.backend_name }} interface code
if: ${{ inputs.test_interface_directory }}
shell: bash
working-directory: ${{ inputs.test_interface_directory }}
run: |
apptainer exec ${{github.workspace}}/devel-tools/CentOS7-devel.sif \
./run_tests.sh ${{github.workspace}}/${{ inputs.backend_name }}-source/${{ inputs.rpath_exe }}
- name: Save failed interface test artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failed-interface-test-diffs-${{ inputs.backend_name }}
path: ${{ inputs.test_interface_directory }}/*/*.diff

0 comments on commit 990b1aa

Please sign in to comment.