mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-17 06:34:45 +00:00
Add uv-cache-hit and test CI
This commit is contained in:
parent
e85263fd93
commit
50d654e3c5
4 changed files with 26 additions and 7 deletions
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
|
@ -35,6 +35,25 @@ jobs:
|
|||
uses: ./
|
||||
- run: uv sync
|
||||
working-directory: __tests__/fixtures/uv-project
|
||||
test-default-version-cache: # https://github.com/astral-sh/setup-uv/issues/171
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-14]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install latest version
|
||||
uses: ./
|
||||
- name: Verify cache hit
|
||||
id: re-setup-uv
|
||||
uses: ./
|
||||
- name: Verify uv cache hit
|
||||
run: |
|
||||
if [ "$UV_CACHE_HIT" != "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
env:
|
||||
UV_CACHE_HIT: ${{ steps.re-setup-uv.outputs.uv-cache-hit }}
|
||||
test-specific-version:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -105,13 +124,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
[
|
||||
ubuntu-latest,
|
||||
macos-latest,
|
||||
macos-14,
|
||||
windows-latest,
|
||||
]
|
||||
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install default version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue