25
25
with :
26
26
persist-credentials : false
27
27
- name : Actionlint
28
- uses : eifinger/actionlint-action@23c85443d840cd73bbecb9cddfc933cc21649a38 # v1.9.1
28
+ uses : eifinger/actionlint-action@23c85443d840cd73bbecb9cddfc933cc21649a38 # v1.9.1
29
29
- name : Run zizmor
30
30
uses : zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
31
31
- uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
@@ -269,13 +269,7 @@ jobs:
269
269
runs-on : ${{ matrix.os }}
270
270
strategy :
271
271
matrix :
272
- os :
273
- [
274
- ubuntu-latest,
275
- macos-latest,
276
- macos-14,
277
- windows-latest,
278
- ]
272
+ os : [ubuntu-latest, macos-latest, macos-14, windows-latest]
279
273
steps :
280
274
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
281
275
with :
@@ -334,7 +328,7 @@ jobs:
334
328
runs-on : ${{ matrix.os }}
335
329
strategy :
336
330
matrix :
337
- os : [ ubuntu-latest, macos-latest, windows-latest ]
331
+ os : [ubuntu-latest, macos-latest, windows-latest]
338
332
steps :
339
333
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
340
334
with :
@@ -371,8 +365,8 @@ jobs:
371
365
runs-on : ${{ matrix.os }}
372
366
strategy :
373
367
matrix :
374
- enable-cache : [ "true", "false", "auto" ]
375
- os : [ "ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest" ]
368
+ enable-cache : ["true", "false", "auto"]
369
+ os : ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
376
370
steps :
377
371
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
378
372
with :
@@ -389,8 +383,8 @@ jobs:
389
383
runs-on : ${{ matrix.os }}
390
384
strategy :
391
385
matrix :
392
- enable-cache : [ "true", "false", "auto" ]
393
- os : [ "ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest" ]
386
+ enable-cache : ["true", "false", "auto"]
387
+ os : ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
394
388
needs : test-setup-cache
395
389
steps :
396
390
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -836,6 +830,45 @@ jobs:
836
830
exit 1
837
831
fi
838
832
833
+ test-cache-python-installs :
834
+ runs-on : ubuntu-latest
835
+ steps :
836
+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
837
+ with :
838
+ persist-credentials : false
839
+ - name : Verify Python install dir is not populated
840
+ run : |
841
+ if [ -d ~/.local/share/uv/python ]; then
842
+ echo "Python install dir should not exist"
843
+ exit 1
844
+ fi
845
+ - name : Setup uv with cache
846
+ uses : ./
847
+ with :
848
+ enable-cache : true
849
+ cache-python : true
850
+ - run : uv sync
851
+ working-directory : __tests__/fixtures/uv-project-pinned-python
852
+ - name : Verify the correct Python version is installed
853
+ run : |
854
+ PYTHON_VERSION=$(.venv/bin/python -c "import sys; print(sys.version)")
855
+ if [[ "$PYTHON_VERSION" != "3.13.3 *" ]]; then
856
+ echo "Python version is not correct: $PYTHON_VERSION"
857
+ exit 1
858
+ fi
859
+ - name : Verify Python install dir exists
860
+ run : |
861
+ if [ ! -d ~/.local/share/uv/python ]; then
862
+ echo "Python install dir should exist"
863
+ exit 1
864
+ fi
865
+ - name : Verify Python is installed in install dir
866
+ run : |
867
+ if [ ! -f ~/.local/share/uv/python/3.13.3/bin/python ]; then
868
+ echo "Python binary does not exist"
869
+ exit 1
870
+ fi
871
+
839
872
all-tests-passed :
840
873
runs-on : ubuntu-latest
841
874
needs :
0 commit comments