mirror of https://github.com/astral-sh/uv
Disable `.egg-info` tests via `slow-tests` feature on Windows and macOS (#10872)
## Summary These are super slow on Windows and it's not critical to test them on that platform. Let's just do the lazy thing.
This commit is contained in:
parent
088c194159
commit
183fe403c6
|
|
@ -228,7 +228,8 @@ jobs:
|
||||||
- name: "Cargo test"
|
- name: "Cargo test"
|
||||||
run: |
|
run: |
|
||||||
cargo nextest run \
|
cargo nextest run \
|
||||||
--features python-patch \
|
--no-default-features \
|
||||||
|
--features python,python-managed,pypi,git,performance,crates-io \
|
||||||
--workspace \
|
--workspace \
|
||||||
--status-level skip --failure-output immediate-final --no-fail-fast -j 12 --final-status-level slow
|
--status-level skip --failure-output immediate-final --no-fail-fast -j 12 --final-status-level slow
|
||||||
|
|
||||||
|
|
@ -272,8 +273,13 @@ jobs:
|
||||||
# Avoid permission errors during concurrent tests
|
# Avoid permission errors during concurrent tests
|
||||||
# See https://github.com/astral-sh/uv/issues/6940
|
# See https://github.com/astral-sh/uv/issues/6940
|
||||||
UV_LINK_MODE: copy
|
UV_LINK_MODE: copy
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
|
cargo nextest run \
|
||||||
|
--no-default-features \
|
||||||
|
--features python,pypi,python-managed \
|
||||||
|
--workspace \
|
||||||
|
--status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
|
||||||
|
|
||||||
# Separate jobs for the nightly crate
|
# Separate jobs for the nightly crate
|
||||||
windows-trampoline-check:
|
windows-trampoline-check:
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ ignored = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["python", "python-managed", "pypi", "git", "performance", "crates-io", "test-ecosystem"]
|
default = ["python", "python-managed", "pypi", "git", "performance", "crates-io", "slow-tests", "test-ecosystem"]
|
||||||
# Use better memory allocators, etc.
|
# Use better memory allocators, etc.
|
||||||
performance = [
|
performance = [
|
||||||
"performance-memory-allocator",
|
"performance-memory-allocator",
|
||||||
|
|
@ -156,6 +156,8 @@ pypi = []
|
||||||
git = []
|
git = []
|
||||||
# Introduces a dependency on crates.io.
|
# Introduces a dependency on crates.io.
|
||||||
crates-io = []
|
crates-io = []
|
||||||
|
# Include "slow" test cases.
|
||||||
|
slow-tests = []
|
||||||
# Includes test cases that require ecosystem packages
|
# Includes test cases that require ecosystem packages
|
||||||
test-ecosystem = []
|
test-ecosystem = []
|
||||||
# Adds self-update functionality.
|
# Adds self-update functionality.
|
||||||
|
|
|
||||||
|
|
@ -7675,6 +7675,7 @@ fn switch_platform() -> Result<()> {
|
||||||
|
|
||||||
/// See: <https://github.com/astral-sh/uv/pull/6714>
|
/// See: <https://github.com/astral-sh/uv/pull/6714>
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "slow-tests")]
|
||||||
fn stale_egg_info() -> Result<()> {
|
fn stale_egg_info() -> Result<()> {
|
||||||
let context = TestContext::new("3.12");
|
let context = TestContext::new("3.12");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5276,6 +5276,7 @@ fn sync_derivation_chain_group() -> Result<()> {
|
||||||
|
|
||||||
/// See: <https://github.com/astral-sh/uv/issues/9743>
|
/// See: <https://github.com/astral-sh/uv/issues/9743>
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "slow-tests")]
|
||||||
fn sync_stale_egg_info() -> Result<()> {
|
fn sync_stale_egg_info() -> Result<()> {
|
||||||
let context = TestContext::new("3.13");
|
let context = TestContext::new("3.13");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue