File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,24 @@ jobs:
18
18
build :
19
19
name : Perform CI Checks
20
20
needs : org-check
21
- runs-on : ubuntu-latest
21
+ runs-on : ubuntu-20.04
22
22
strategy :
23
23
matrix :
24
+ # The python version to run Pants itself on.
24
25
python-version : [3.9]
25
26
steps :
26
27
- uses : actions/checkout@v3
27
- - uses : pantsbuild/actions/init-pants@v1
28
+ - uses : pantsbuild/actions/init-pants@v2
28
29
# This action bootstraps pants and manages 2-3 GHA caches.
29
30
# See: github.com/pantsbuild/actions/tree/main/init-pants/
30
31
with :
31
32
pants-python-version : ${{ matrix.python-version }}
32
33
# cache0 makes it easy to bust the cache if needed
33
34
# just increase the integer to start with a fresh cache
34
35
gha-cache-key : cache0-py${{ matrix.python-version }}
35
- # The Python backend uses named_caches for Pip/PEX state,
36
- # so it is appropriate to invalidate on lockfile changes .
37
- named-caches-hash : ${{ hashFiles('python-default.lock') }}
36
+ # The go backend doesn't use named caches. See the example-python repo for an example
37
+ # of how to set up this cache .
38
+ named-caches-hash : " "
38
39
# If you're not using a fine-grained remote caching service (see https://www.pantsbuild.org/docs/remote-caching),
39
40
# then you may also want to preserve the local Pants cache (lmdb_store). However this must invalidate for
40
41
# changes to any file that can affect the build, so may not be practical in larger repos.
You can’t perform that action at this time.
0 commit comments