From 1ee950ac5b0001463e38becc4401d415cfaa8d59 Mon Sep 17 00:00:00 2001 From: Matthew Broadway Date: Mon, 1 Jan 2024 17:17:10 +0000 Subject: [PATCH] skip import hook tests on CIRRUS_CI --- tests/run.rs | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/tests/run.rs b/tests/run.rs index ba855b973..24c75c2d4 100644 --- a/tests/run.rs +++ b/tests/run.rs @@ -834,19 +834,21 @@ fn pyo3_source_date_epoch() { #[test] fn import_hook_project_importer() { if env::var("CIRRUS_CI").is_ok() { - handle_result(import_hook::test_import_hook( + // skip + } else if env::var("GITHUB_ACTIONS").is_ok() { + handle_result(import_hook::test_import_hook_parallel( "import_hook_project_importer", - "tests/import_hook/test_project_importer.py", + &PathBuf::from("tests/import_hook/test_project_importer.py"), &["boltons"], - &[("MATURIN_TEST_NAME", "ALL")], + &[], true, )); } else { - handle_result(import_hook::test_import_hook_parallel( + handle_result(import_hook::test_import_hook( "import_hook_project_importer", - &PathBuf::from("tests/import_hook/test_project_importer.py"), + "tests/import_hook/test_project_importer.py", &["boltons"], - &[], + &[("MATURIN_TEST_NAME", "ALL")], true, )); } @@ -855,19 +857,21 @@ fn import_hook_project_importer() { #[test] fn import_hook_rust_file_importer() { if env::var("CIRRUS_CI").is_ok() { - handle_result(import_hook::test_import_hook( + // skip + } else if env::var("GITHUB_ACTIONS").is_ok() { + handle_result(import_hook::test_import_hook_parallel( "import_hook_rust_file_importer", - "tests/import_hook/test_rust_file_importer.py", + &PathBuf::from("tests/import_hook/test_rust_file_importer.py"), + &[], &[], - &[("MATURIN_TEST_NAME", "ALL")], true, )); } else { - handle_result(import_hook::test_import_hook_parallel( + handle_result(import_hook::test_import_hook( "import_hook_rust_file_importer", - &PathBuf::from("tests/import_hook/test_rust_file_importer.py"), - &[], + "tests/import_hook/test_rust_file_importer.py", &[], + &[("MATURIN_TEST_NAME", "ALL")], true, )); }