diff --git a/crates/uv-dev/src/generate_cli_reference.rs b/crates/uv-dev/src/generate_cli_reference.rs index 5ebedab8a..96fae1d0d 100644 --- a/crates/uv-dev/src/generate_cli_reference.rs +++ b/crates/uv-dev/src/generate_cli_reference.rs @@ -357,6 +357,11 @@ mod tests { #[test] fn test_generate_cli_reference() -> Result<()> { + // Skip this test in CI to avoid redundancy with the dedicated CI job + if env::var_os(EnvVars::CI).is_some() { + return Ok(()); + } + let mode = if env::var(EnvVars::UV_UPDATE_SCHEMA).as_deref() == Ok("1") { Mode::Write } else { diff --git a/crates/uv-dev/src/generate_env_vars_reference.rs b/crates/uv-dev/src/generate_env_vars_reference.rs index 1004b00ef..bc46d0c91 100644 --- a/crates/uv-dev/src/generate_env_vars_reference.rs +++ b/crates/uv-dev/src/generate_env_vars_reference.rs @@ -117,6 +117,11 @@ mod tests { #[test] fn test_generate_env_vars_reference() -> Result<()> { + // Skip this test in CI to avoid redundancy with the dedicated CI job + if env::var_os(EnvVars::CI).is_some() { + return Ok(()); + } + let mode = if env::var(EnvVars::UV_UPDATE_SCHEMA).as_deref() == Ok("1") { Mode::Write } else { diff --git a/crates/uv-dev/src/generate_json_schema.rs b/crates/uv-dev/src/generate_json_schema.rs index 8a4ff47d5..424ae1185 100644 --- a/crates/uv-dev/src/generate_json_schema.rs +++ b/crates/uv-dev/src/generate_json_schema.rs @@ -125,6 +125,11 @@ mod tests { #[test] fn test_generate_json_schema() -> Result<()> { + // Skip this test in CI to avoid redundancy with the dedicated CI job + if env::var_os(EnvVars::CI).is_some() { + return Ok(()); + } + let mode = if env::var(EnvVars::UV_UPDATE_SCHEMA).as_deref() == Ok("1") { Mode::Write } else { diff --git a/crates/uv-dev/src/generate_sysconfig_mappings.rs b/crates/uv-dev/src/generate_sysconfig_mappings.rs index 18b8aa93c..adb8333a8 100644 --- a/crates/uv-dev/src/generate_sysconfig_mappings.rs +++ b/crates/uv-dev/src/generate_sysconfig_mappings.rs @@ -188,6 +188,11 @@ mod tests { #[tokio::test] async fn test_generate_sysconfig_mappings() -> Result<()> { + // Skip this test in CI to avoid redundancy with the dedicated CI job + if env::var_os(EnvVars::CI).is_some() { + return Ok(()); + } + let mode = if env::var(EnvVars::UV_UPDATE_SCHEMA).as_deref() == Ok("1") { Mode::Write } else {