Skip to content

Commit

Permalink
disabled tests other than import hook ones
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Dec 30, 2023
1 parent 59571d5 commit cfa90db
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
#- '3.8'
#- '3.9'
#- '3.10'
- '3.11'
#- '3.11'
- '3.12'
#- 'pypy3.9'
#- 'pypy3.10'
Expand Down
39 changes: 37 additions & 2 deletions tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::common::import_hook;
mod common;

#[test]
#[ignore]
fn develop_pyo3_pure() {
handle_result(develop::test_develop(
"test-crates/pyo3-pure",
Expand All @@ -37,6 +38,7 @@ fn develop_pyo3_pure_conda() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed",
Expand All @@ -47,6 +49,7 @@ fn develop_pyo3_mixed() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed_include_exclude() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed-include-exclude",
Expand All @@ -57,6 +60,7 @@ fn develop_pyo3_mixed_include_exclude() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed_submodule() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed-submodule",
Expand All @@ -67,6 +71,7 @@ fn develop_pyo3_mixed_submodule() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed_implicit() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed-implicit",
Expand All @@ -77,6 +82,7 @@ fn develop_pyo3_mixed_implicit() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed_py_subdir() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed-py-subdir",
Expand All @@ -87,6 +93,7 @@ fn develop_pyo3_mixed_py_subdir() {
}

#[test]
#[ignore]
fn develop_pyo3_mixed_src_layout() {
handle_result(develop::test_develop(
"test-crates/pyo3-mixed-src/rust",
Expand All @@ -97,6 +104,7 @@ fn develop_pyo3_mixed_src_layout() {
}

#[test]
#[ignore]
fn develop_cffi_pure() {
let python_implementation = test_python_implementation().unwrap();
if cfg!(windows) && env::var("GITHUB_ACTIONS").is_ok() && python_implementation == "pypy" {
Expand All @@ -112,6 +120,7 @@ fn develop_cffi_pure() {
}

#[test]
#[ignore]
fn develop_cffi_mixed() {
let python_implementation = test_python_implementation().unwrap();
if cfg!(windows) && env::var("GITHUB_ACTIONS").is_ok() && python_implementation == "pypy" {
Expand All @@ -127,6 +136,7 @@ fn develop_cffi_mixed() {
}

#[test]
#[ignore]
fn develop_uniffi_pure() {
if env::var("GITHUB_ACTIONS").is_ok() || which("uniffi-bindgen").is_ok() {
handle_result(develop::test_develop(
Expand All @@ -139,6 +149,7 @@ fn develop_uniffi_pure() {
}

#[test]
#[ignore]
fn develop_uniffi_pure_proc_macro() {
handle_result(develop::test_develop(
"test-crates/uniffi-pure-proc-macro",
Expand All @@ -149,6 +160,7 @@ fn develop_uniffi_pure_proc_macro() {
}

#[test]
#[ignore]
fn develop_uniffi_mixed() {
if env::var("GITHUB_ACTIONS").is_ok() || which("uniffi-bindgen").is_ok() {
handle_result(develop::test_develop(
Expand All @@ -161,6 +173,7 @@ fn develop_uniffi_mixed() {
}

#[test]
#[ignore]
fn develop_hello_world() {
handle_result(develop::test_develop(
"test-crates/hello-world",
Expand All @@ -171,6 +184,7 @@ fn develop_hello_world() {
}

#[test]
#[ignore]
fn develop_pyo3_ffi_pure() {
handle_result(develop::test_develop(
"test-crates/pyo3-ffi-pure",
Expand Down Expand Up @@ -449,6 +463,7 @@ fn integration_wasm_hello_world() {
}

#[test]
#[ignore]
fn abi3_without_version() {
handle_result(errors::abi3_without_version())
}
Expand All @@ -471,6 +486,7 @@ fn abi3_without_version() {
)),
ignore
)]
#[ignore]
fn pyo3_no_extension_module() {
let python_implementation = test_python_implementation().unwrap();
if python_implementation == "cpython" {
Expand All @@ -479,23 +495,27 @@ fn pyo3_no_extension_module() {
}

#[test]
#[ignore]
fn locked_doesnt_build_without_cargo_lock() {
handle_result(errors::locked_doesnt_build_without_cargo_lock())
}

#[test]
#[cfg_attr(not(all(target_os = "linux", target_env = "gnu")), ignore)]
#[ignore]
fn invalid_manylinux_does_not_panic() {
handle_result(errors::invalid_manylinux_does_not_panic())
}

#[test]
#[ignore]
fn warn_on_missing_python_source() {
handle_result(errors::warn_on_missing_python_source())
}

#[test]
#[cfg_attr(not(target_os = "linux"), ignore)]
#[ignore]
fn musl() {
let ran = handle_result(other::test_musl());
if !ran {
Expand All @@ -504,11 +524,13 @@ fn musl() {
}

#[test]
#[ignore]
fn workspace_cargo_lock() {
handle_result(other::test_workspace_cargo_lock())
}

#[test]
#[ignore]
fn workspace_members_beneath_pyproject_sdist() {
let cargo_toml = expect![[r#"
[workspace]
Expand Down Expand Up @@ -543,6 +565,7 @@ fn workspace_members_beneath_pyproject_sdist() {
}

#[test]
#[ignore]
fn workspace_members_non_local_dep_sdist() {
let cargo_toml = expect![[r#"
[package]
Expand Down Expand Up @@ -584,6 +607,7 @@ fn workspace_members_non_local_dep_sdist() {
}

#[test]
#[ignore]
fn lib_with_path_dep_sdist() {
handle_result(other::test_source_distribution(
"test-crates/sdist_with_path_dep",
Expand All @@ -607,6 +631,7 @@ fn lib_with_path_dep_sdist() {
}

#[test]
#[ignore]
fn lib_with_target_path_dep_sdist() {
let cargo_toml = expect![[r#"
[package]
Expand Down Expand Up @@ -650,6 +675,7 @@ fn lib_with_target_path_dep_sdist() {
}

#[test]
#[ignore]
fn pyo3_mixed_src_layout_sdist() {
handle_result(other::test_source_distribution(
"test-crates/pyo3-mixed-src/rust",
Expand All @@ -673,6 +699,7 @@ fn pyo3_mixed_src_layout_sdist() {
}

#[test]
#[ignore]
fn pyo3_mixed_include_exclude_sdist() {
handle_result(other::test_source_distribution(
"test-crates/pyo3-mixed-include-exclude",
Expand All @@ -699,6 +726,7 @@ fn pyo3_mixed_include_exclude_sdist() {
}

#[test]
#[ignore]
fn pyo3_mixed_include_exclude_git_sdist_generator() {
if !Path::new(".git").exists() {
return;
Expand Down Expand Up @@ -728,6 +756,7 @@ fn pyo3_mixed_include_exclude_git_sdist_generator() {
}

#[test]
#[ignore]
fn pyo3_mixed_include_exclude_wheel_files() {
handle_result(other::check_wheel_files(
"test-crates/pyo3-mixed-include-exclude",
Expand All @@ -747,6 +776,7 @@ fn pyo3_mixed_include_exclude_wheel_files() {
}

#[test]
#[ignore]
fn workspace_sdist() {
handle_result(other::test_source_distribution(
"test-crates/workspace/py",
Expand All @@ -767,6 +797,7 @@ fn workspace_sdist() {
}

#[test]
#[ignore]
fn workspace_with_path_dep_sdist() {
handle_result(other::test_source_distribution(
"test-crates/workspace_with_path_dep/python",
Expand All @@ -791,6 +822,7 @@ fn workspace_with_path_dep_sdist() {
}

#[test]
#[ignore]
fn workspace_with_path_dep_git_sdist_generator() {
if !Path::new(".git").exists() {
return;
Expand All @@ -813,6 +845,7 @@ fn workspace_with_path_dep_git_sdist_generator() {

#[rustversion::since(1.64)]
#[test]
#[ignore]
fn workspace_inheritance_sdist() {
handle_result(other::test_source_distribution(
"test-crates/workspace-inheritance/python",
Expand All @@ -835,11 +868,13 @@ fn workspace_inheritance_sdist() {
}

#[test]
#[ignore]
fn abi3_python_interpreter_args() {
handle_result(other::abi3_python_interpreter_args());
}

#[test]
#[ignore]
fn pyo3_source_date_epoch() {
env::set_var("SOURCE_DATE_EPOCH", "0");
handle_result(other::check_wheel_mtimes(
Expand All @@ -849,8 +884,8 @@ fn pyo3_source_date_epoch() {
))
}

#[ignore]
#[test]
#[ignore]
fn import_hook_project_importer() {
handle_result(import_hook::test_import_hook(
"import_hook_project_importer",
Expand All @@ -872,8 +907,8 @@ fn import_hook_project_importer_parallel() {
));
}

#[ignore]
#[test]
#[ignore]
fn import_hook_rust_file_importer() {
handle_result(import_hook::test_import_hook(
"import_hook_rust_file_importer",
Expand Down

0 comments on commit cfa90db

Please sign in to comment.