mirror of https://github.com/astral-sh/uv
Skip all generated content checks when in CI (#15354)
This commit is contained in:
parent
00e888098f
commit
a4d14710d4
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue