From 549cef70df7141c751980951472886b0f36acea9 Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 4 Dec 2023 17:02:34 +0100 Subject: [PATCH] Run tests for MSRV --- .github/workflows/ci.yml | 4 +++- tests/try_from.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e1e43fa..9e712b80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tests/try_from.rs b/tests/try_from.rs index a44cdd07..25e5a8b9 100644 --- a/tests/try_from.rs +++ b/tests/try_from.rs @@ -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)]