9999 echo "GIT_FETCH_DEPTH=2" >> "${GITHUB_ENV}"
100100 fi
101101 - name : Check out the revision with minimal required history
102- uses : actions/checkout@v6
102+ uses : actions/checkout@v5
103103 with :
104104 fetch-depth : ${{ env.GIT_FETCH_DEPTH }}
105105 lfs : false
@@ -126,7 +126,7 @@ jobs:
126126 # See: github.com/pantsbuild/actions/tree/main/init-pants/
127127 # ref) https://github.com/pantsbuild/example-python/blob/main/.github/workflows/pants.yaml#L30-L49
128128 with :
129- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
129+ named-caches-hash : ${{ github.sha }}
130130 cache-lmdb-store : ' true'
131131 - name : Check BUILD files
132132 run : pants tailor --check update-build-files --check '::'
@@ -167,7 +167,7 @@ jobs:
167167 runs-on : ubuntu-latest
168168 steps :
169169 - name : Check out the revision
170- uses : actions/checkout@v6
170+ uses : actions/checkout@v5
171171 with :
172172 lfs : false
173173 - name : Parse versions from config
@@ -193,7 +193,7 @@ jobs:
193193 - name : Bootstrap Pants
194194 uses : ./actions/init-pants
195195 with :
196- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
196+ named-caches-hash : ${{ github.sha }}
197197 cache-lmdb-store : ' true'
198198 - name : Prepare DB
199199 run : docker compose -f docker-compose.halfstack-main.yml up -d backendai-half-db --wait
@@ -227,7 +227,7 @@ jobs:
227227 echo "GIT_FETCH_DEPTH=2" >> "${GITHUB_ENV}"
228228 fi
229229 - name : Check out the revision with minimal required history
230- uses : actions/checkout@v6
230+ uses : actions/checkout@v5
231231 with :
232232 fetch-depth : ${{ env.GIT_FETCH_DEPTH }}
233233 lfs : false
@@ -252,7 +252,7 @@ jobs:
252252 - name : Bootstrap Pants
253253 uses : ./actions/init-pants
254254 with :
255- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
255+ named-caches-hash : ${{ github.sha }}
256256 cache-lmdb-store : ' true'
257257 - name : Typecheck
258258 run : |
@@ -294,7 +294,7 @@ jobs:
294294 echo "GIT_FETCH_DEPTH=2" >> "${GITHUB_ENV}"
295295 fi
296296 - name : Check out the revision with minimal required history
297- uses : actions/checkout@v6
297+ uses : actions/checkout@v5
298298 with :
299299 fetch-depth : ${{ env.GIT_FETCH_DEPTH }}
300300 lfs : false
@@ -319,7 +319,7 @@ jobs:
319319 - name : Bootstrap Pants
320320 uses : ./actions/init-pants
321321 with :
322- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
322+ named-caches-hash : ${{ github.sha }}
323323 cache-lmdb-store : ' true'
324324 - name : Test
325325 timeout-minutes : 15
@@ -363,7 +363,7 @@ jobs:
363363 SCIENCE_AUTH_API_GITHUB_COM_BEARER : ${{ secrets.GITHUB_TOKEN }}
364364 steps :
365365 - name : Check out the revision
366- uses : actions/checkout@v6
366+ uses : actions/checkout@v5
367367 - name : Fetch remote tags
368368 run : git fetch origin 'refs/tags/*:refs/tags/*' -f
369369 - name : Git LFS Pull
@@ -382,11 +382,10 @@ jobs:
382382 python-version : ${{ env.PROJECT_PYTHON_VERSION }}
383383 cache : " pip"
384384 - name : Bootstrap Pants
385- uses : pantsbuild /actions/init-pants@v8
385+ uses : . /actions/init-pants
386386 with :
387- gha-cache-key : pants-cache-main-1-deploy-py${{ env.PROJECT_PYTHON_VERSION }}-${{ runner.os }}-${{ runner.arch }}
388- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
389- cache-lmdb-store : ' false'
387+ named-caches-hash : ${{ github.sha }}
388+ cache-lmdb-store : ' true'
390389 - name : Build both lazy and fat packages
391390 run : |
392391 pants --tag="scie" package '::'
@@ -420,7 +419,7 @@ jobs:
420419 runs-on : ubuntu-22.04
421420 steps :
422421 - name : Check out the revision
423- uses : actions/checkout@v6
422+ uses : actions/checkout@v5
424423 - name : Fetch remote tags
425424 run : git fetch origin 'refs/tags/*:refs/tags/*' -f
426425 - name : Git LFS Pull
@@ -439,11 +438,10 @@ jobs:
439438 run : |
440439 pip install -U 'packaging>=21.3'
441440 - name : Bootstrap Pants
442- uses : pantsbuild /actions/init-pants@v8
441+ uses : . /actions/init-pants
443442 with :
444- gha-cache-key : pants-cache-main-1-deploy-py${{ env.PROJECT_PYTHON_VERSION }}-${{ runner.os }}-${{ runner.arch }}
445- named-caches-hash : ${{ hashFiles('python*.lock', 'tools/*.lock') }}
446- cache-lmdb-store : ' false'
443+ named-caches-hash : ${{ github.sha }}
444+ cache-lmdb-store : ' true'
447445 - name : Build wheel packages
448446 run : |
449447 ./scripts/build-wheels.sh
@@ -488,7 +486,7 @@ jobs:
488486 contents : write
489487 environment : deploy-to-pypi
490488 steps :
491- - uses : actions/checkout@v6
489+ - uses : actions/checkout@v5
492490 - name : Fetch remote tags
493491 run : git fetch origin 'refs/tags/*:refs/tags/*' -f
494492 - name : Extract Python version from pants.toml
@@ -632,7 +630,7 @@ jobs:
632630
633631 steps :
634632 - name : Check out the revision
635- uses : actions/checkout@v6
633+ uses : actions/checkout@v5
636634 - name : Git LFS Pull
637635 run : git lfs pull
638636 - name : Extract Python version from pants.toml
0 commit comments