Skip to content

Commit

Permalink
skip import hook tests on CIRRUS_CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Jan 1, 2024
1 parent fb42e94 commit 1ee950a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));
}
Expand All @@ -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,
));
}
Expand Down

0 comments on commit 1ee950a

Please sign in to comment.