Skip to content

Commit

Permalink
attempt to reduce noise in file
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed Jul 11, 2024
1 parent f01d00e commit 914ff85
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,18 @@ jobs:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1

- name: Upload results
if: always()
- name: Filter and upload results
if: always() && {{ inputs.flaky }}
uses: actions/upload-artifact@v4
run: |
echo "this should only run if the previous one failed, but if: failure() does not work for some reason"
jq --slurp '.[] | select(.type == "test" and .event == "failed" ) | .name ' output/libtest.json > output/failures.json
rm output/libtest.json
with:
name: ${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
name: run_${{ github.run_number }}-${{ github.run_attempt }}-${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
path: output
retention-days: 1
compression-level: 0

- name: doctests
if: ${{ (! inputs.flaky) && matrix.features == 'all' }}
Expand Down

0 comments on commit 914ff85

Please sign in to comment.