Skip to content

Commit

Permalink
Add system test
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jan 17, 2025
1 parent e311024 commit 8bbc96e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,20 @@ jobs:
- name: "Validate global Python install"
run: python ./scripts/check_system_python.py --uv ./uv.exe

# NB: Run this last, we are modifying the registry
- name: "Test PEP 514 registration"
run: |
./uv.exe python install --preview 3.11
./uv.exe python install --preview 3.12
./uv.exe python install --preview 3.13
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
py --list-paths
./uv.exe python uninstall --preview 3.11
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
py --list-paths
./uv.exe python uninstall --preview --all
Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
system-test-windows-python-313:
timeout-minutes: 10
needs: build-binary-windows
Expand Down
6 changes: 3 additions & 3 deletions crates/uv/src/commands/python/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ pub(crate) async fn install(
&mut errors,
)?;

#[cfg(windows)]
{
if preview.is_enabled() {
if preview.is_enabled() {
#[cfg(windows)]
{
uv_python::windows_registry::create_registry_entry(installation, &mut errors)?;
}
}
Expand Down

0 comments on commit 8bbc96e

Please sign in to comment.