-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
2,558 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,6 +298,10 @@ jobs: | |
|
||
- name: "Cargo test" | ||
working-directory: ${{ env.UV_WORKSPACE }} | ||
env: | ||
# Avoid permission errors during concurrent tests | ||
# See https://github.com/astral-sh/uv/issues/6940 | ||
UV_LINK_MODE: copy | ||
run: | | ||
cargo nextest run --no-default-features --features python,pypi --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow | ||
|
@@ -551,6 +555,52 @@ jobs: | |
path: ${{ env.UV_WORKSPACE }}/target/debug/uv.exe | ||
retention-days: 1 | ||
|
||
build-binary-freebsd: | ||
needs: determine_changes | ||
timeout-minutes: 10 | ||
if: ${{ github.repository == 'astral-sh/uv' && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }} | ||
runs-on: | ||
labels: ubuntu-latest | ||
name: "build binary | freebsd" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: "Cross build" | ||
run: | | ||
# Install cross from `freebsd-firecracker` | ||
wget -q -O cross https://github.com/acj/freebsd-firecracker/releases/download/v0.0.10/cross | ||
chmod +x cross | ||
mv cross /usr/local/bin/cross | ||
cross build --target x86_64-unknown-freebsd | ||
- name: Test in Firecracker VM | ||
uses: acj/[email protected] | ||
with: | ||
verbose: false | ||
pre-run: | | ||
# The exclude `*` prevents examination of directories so we need to | ||
# include each parent directory of the binary | ||
include_path="$(mktemp)" | ||
cat <<EOF > $include_path | ||
target | ||
target/x86_64-unknown-freebsd | ||
target/x86_64-unknown-freebsd/debug | ||
target/x86_64-unknown-freebsd/debug/uv | ||
EOF | ||
rsync -r -e "ssh" \ | ||
--relative \ | ||
--copy-links \ | ||
--include-from "$include_path" \ | ||
--exclude "*" \ | ||
. firecracker: | ||
run-in-vm: | | ||
cp target/x86_64-unknown-freebsd/debug/uv uv | ||
chmod +x uv | ||
./uv --version | ||
ecosystem-test: | ||
timeout-minutes: 10 | ||
needs: build-binary-linux | ||
|
@@ -672,6 +722,46 @@ jobs: | |
run: | | ||
./uv pip install -v anyio | ||
integration-test-free-threaded-windows: | ||
timeout-minutes: 10 | ||
needs: build-binary-windows | ||
name: "integration test | free-threaded on windows" | ||
runs-on: windows-latest | ||
env: | ||
# Avoid debug build stack overflows. | ||
UV_STACK_SIZE: 2000000 | ||
|
||
steps: | ||
- name: "Download binary" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: uv-windows-${{ github.sha }} | ||
|
||
- name: "Install free-threaded Python via uv" | ||
run: | | ||
./uv python install -v 3.13t | ||
- name: "Create a virtual environment" | ||
run: | | ||
./uv venv -p 3.13t --python-preference only-managed | ||
- name: "Check version" | ||
run: | | ||
.venv/Scripts/python --version | ||
- name: "Check is free-threaded" | ||
run: | | ||
.venv/Scripts/python -c "import sys; exit(1) if sys._is_gil_enabled() else exit(0)" | ||
- name: "Check install" | ||
run: | | ||
./uv pip install -v anyio | ||
- name: "Check uv run" | ||
run: | | ||
./uv run python -c "" | ||
./uv run -p 3.13t python -c "" | ||
integration-test-pypy-linux: | ||
timeout-minutes: 10 | ||
needs: build-binary-linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.