Skip to content

Commit

Permalink
Run cargo test in CI only on newer Rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jan 31, 2025
1 parent e800aca commit d49da88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ jobs:
# running through some hard-to-time code paths. loom testing is not included since it is not
# compatible nor make any sense together with sleeping.
- name: Test with artificial delay
# Some dev-dependencies pull in transitive dependencies with an MSRV higher than ours
if: ${{ matrix.rust != '1.65.0' }}
shell: bash
run: RUSTFLAGS+="--cfg oneshot_test_delay" cargo hack --feature-powerset --exclude-all-features test

# Compile the library against loom to do correctness testing.
# `--features loom` must be given so that only feature powerset combinations including loom are tested.
- name: Test with loom
if: ${{ matrix.rust != '1.65.0' }}
shell: bash
run: |
RUSTFLAGS+="--cfg oneshot_loom" LOOM_MAX_BRANCHES=100000 \
Expand Down

0 comments on commit d49da88

Please sign in to comment.