Fix GitHub Actions integration test (#8013)

Fixes bug noted in https://github.com/astral-sh/uv/pull/8012

GitHub upgraded the 3.12 Python version so the path changed!
This commit is contained in:
Zanie Blue 2024-10-08 12:53:56 -05:00 committed by GitHub
parent f6fd849f2c
commit cd582cacab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -914,7 +914,7 @@ jobs:
steps: steps:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12.7"
- name: "Download binary" - name: "Download binary"
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@ -948,13 +948,13 @@ jobs:
- name: "Sync to the system Python" - name: "Sync to the system Python"
run: ./uv sync -v --python 3.12 run: ./uv sync -v --python 3.12
env: env:
UV_PROJECT_ENVIRONMENT: "/opt/hostedtoolcache/Python/3.12.6/x64" UV_PROJECT_ENVIRONMENT: "/opt/hostedtoolcache/Python/3.12.7/x64"
- name: "Attempt to sync to the system Python with an incompatible version" - name: "Attempt to sync to the system Python with an incompatible version"
run: | run: |
./uv sync -v --python 3.11 && { echo "ci: Error; should not succeed"; exit 1; } || { echo "ci: Ok; expected failure"; exit 0; } ./uv sync -v --python 3.11 && { echo "ci: Error; should not succeed"; exit 1; } || { echo "ci: Ok; expected failure"; exit 0; }
env: env:
UV_PROJECT_ENVIRONMENT: "/opt/hostedtoolcache/Python/3.12.6/x64" UV_PROJECT_ENVIRONMENT: "/opt/hostedtoolcache/Python/3.12.7/x64"
- name: "Attempt to sync to a non-Python environment directory" - name: "Attempt to sync to a non-Python environment directory"
run: | run: |