From 47cfe7abda54e6d4d5dab75b6149c4091184dc29 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 21 Oct 2024 12:02:22 -0500 Subject: [PATCH] Use 3.13 in CI (#8014) --- .github/workflows/ci.yml | 1 + .python-versions | 1 + crates/uv/tests/it/venv.rs | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f8777503aeb..451380dcdd7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -275,6 +275,7 @@ jobs: 3.10 3.11 3.12 + 3.13 - uses: Swatinem/rust-cache@v2 with: diff --git a/.python-versions b/.python-versions index c78335fbdd4d..013b3f8a9fb9 100644 --- a/.python-versions +++ b/.python-versions @@ -1,3 +1,4 @@ +3.13.0 3.12.6 3.11.10 3.10.15 diff --git a/crates/uv/tests/it/venv.rs b/crates/uv/tests/it/venv.rs index 1bc4ece4e86a..767ca58f5d96 100644 --- a/crates/uv/tests/it/venv.rs +++ b/crates/uv/tests/it/venv.rs @@ -50,6 +50,28 @@ fn create_venv() { context.venv.assert(predicates::path::is_dir()); } +#[test] +fn create_venv_313() { + let context = TestContext::new_with_versions(&["3.13"]); + + uv_snapshot!(context.filters(), context.venv() + .arg(context.venv.as_os_str()) + .arg("--python") + .arg("3.13"), @r###" + success: true + exit_code: 0 + ----- stdout ----- + + ----- stderr ----- + Using CPython 3.13.[X] interpreter at: [PYTHON-3.13] + Creating virtual environment at: .venv + Activate with: source .venv/[BIN]/activate + "### + ); + + context.venv.assert(predicates::path::is_dir()); +} + #[test] fn create_venv_project_environment() -> Result<()> { let context = TestContext::new_with_versions(&["3.12"]);