mirror of
https://github.com/astral-sh/uv
synced 2026-01-22 14:00:11 -05:00
Add smoke test script in Python (#11628)
I wanted to consolidate these anyway, and apparently it's a huge pain to make a Windows task fail early via GitHub's PowerShell setup so I implement this in Python instead.
This commit is contained in:
56
.github/workflows/ci.yml
vendored
56
.github/workflows/ci.yml
vendored
@@ -740,6 +740,8 @@ jobs:
|
||||
name: "smoke test | linux"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
|
||||
with:
|
||||
@@ -752,9 +754,10 @@ jobs:
|
||||
|
||||
- name: "Smoke test"
|
||||
run: |
|
||||
./uv venv -v
|
||||
./uv pip install ruff -v
|
||||
./uvx -v ruff --version
|
||||
./uv run scripts/smoke-test
|
||||
|
||||
- name: "Test shell completions"
|
||||
run: |
|
||||
eval "$(./uv generate-shell-completion bash)"
|
||||
eval "$(./uvx --generate-shell-completion bash)"
|
||||
|
||||
@@ -779,14 +782,7 @@ jobs:
|
||||
|
||||
- name: "Smoke test"
|
||||
run: |
|
||||
# Overwrite the 3.13.0 pin from the project, there are not functional
|
||||
# musl distributions for it
|
||||
./uv python pin 3.13
|
||||
./uv venv -v
|
||||
./uv pip install ruff -v
|
||||
./uvx -v ruff --version
|
||||
./uv pip install numpy -v
|
||||
./uv run python -c "import numpy; print(numpy.__version__)"
|
||||
./uv run scripts/smoke-test
|
||||
|
||||
smoke-test-macos:
|
||||
timeout-minutes: 10
|
||||
@@ -794,6 +790,8 @@ jobs:
|
||||
name: "smoke test | macos"
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
|
||||
with:
|
||||
@@ -806,9 +804,10 @@ jobs:
|
||||
|
||||
- name: "Smoke test"
|
||||
run: |
|
||||
./uv venv -v
|
||||
./uv pip install ruff -v
|
||||
./uvx -v ruff --version
|
||||
./uv run scripts/smoke-test
|
||||
|
||||
- name: "Test shell completions"
|
||||
run: |
|
||||
eval "$(./uv generate-shell-completion bash)"
|
||||
eval "$(./uvx --generate-shell-completion bash)"
|
||||
|
||||
@@ -818,6 +817,8 @@ jobs:
|
||||
name: "smoke test | windows x86_64"
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
|
||||
with:
|
||||
@@ -826,10 +827,16 @@ jobs:
|
||||
- name: "Smoke test"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
./uv venv -v
|
||||
./uv pip install ruff -v
|
||||
./uvx -v ruff --version
|
||||
./uv run scripts/smoke-test
|
||||
|
||||
- name: "Test uv shell completions"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
(& ./uv generate-shell-completion powershell) | Out-String | Invoke-Expression
|
||||
|
||||
- name: "Test uvx shell completions"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
(& ./uvx --generate-shell-completion powershell) | Out-String | Invoke-Expression
|
||||
|
||||
smoke-test-windows-aarch64:
|
||||
@@ -838,6 +845,8 @@ jobs:
|
||||
name: "smoke test | windows aarch64"
|
||||
runs-on: github-windows-11-aarch64-4
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Download binary"
|
||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
|
||||
with:
|
||||
@@ -846,13 +855,16 @@ jobs:
|
||||
- name: "Smoke test"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
$PSNativeCommandUseErrorActionPreference = $true
|
||||
./uv run scripts/smoke-test
|
||||
|
||||
./uv venv -v
|
||||
./uv pip install ruff -v
|
||||
./uvx -v ruff --version
|
||||
- name: "Test uv shell completions"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
(& ./uv generate-shell-completion powershell) | Out-String | Invoke-Expression
|
||||
|
||||
- name: "Test uvx shell completions"
|
||||
working-directory: ${{ env.UV_WORKSPACE }}
|
||||
run: |
|
||||
(& ./uvx --generate-shell-completion powershell) | Out-String | Invoke-Expression
|
||||
|
||||
integration-test-conda:
|
||||
|
||||
Reference in New Issue
Block a user