From 75fe8e50ed5e9aaffde25648e65f95b79201ac07 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Mon, 20 Dec 2021 21:13:42 +0000 Subject: [PATCH] ci: ignore coverage for test_hygiene, try 2 --- codecov.yml | 1 + src/lib.rs | 1 + src/test_hygiene/mod.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 20ecfd53..84c56f0d 100644 --- a/codecov.yml +++ b/codecov.yml @@ -10,3 +10,4 @@ coverage: ignore: - tests/*.rs + - src/test_hygiene/*.rs diff --git a/src/lib.rs b/src/lib.rs index e8ebffcb..de5cdb68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ // Deny some lints in doctests. // Use `#[allow(...)]` locally to override. #![doc(test(attr(deny(warnings), allow(unused_variables, unused_assignments))))] +#![cfg_attr(coverage, feature(no_coverage))] // used in src/test_hygiene.rs //! Rust bindings to the Python interpreter. //! diff --git a/src/test_hygiene/mod.rs b/src/test_hygiene/mod.rs index 2a28cb13..d0105e06 100644 --- a/src/test_hygiene/mod.rs +++ b/src/test_hygiene/mod.rs @@ -3,7 +3,7 @@ // #[pyo3(crate = "crate")] this validates that all macro expansion respects the setting. // // The generated code is never executed (these tests are checking compile time correctness.) -#![cfg_attr(coverage, feature(no_coverage))] +#![cfg_attr(coverage, no_coverage)] mod misc; mod pyclass;