Skip to content

Commit

Permalink
Run tests for MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Dec 4, 2023
1 parent 55019b7 commit 549cef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
- name: Install minimal dependencies versions
run: cargo +nightly update -Z minimal-versions

- run: cargo check --workspace --features full
- run: cargo test --workspace --features full,testing-helpers
-- --skip compile_fail
RUSTFLAGS: --cfg msrv

no_std:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions tests/try_from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ fn enum_with_complex_repr() {
assert!(Enum::try_from(-1).is_err());
}

#[cfg(not(msrv))] // TODO: Remove once MSRV bumps 1.66 or higher.
#[test]
fn test_discriminants_on_enum_with_fields() {
#[derive(TryFrom, Clone, Copy, Debug, Eq, PartialEq)]
Expand Down

0 comments on commit 549cef7

Please sign in to comment.