Skip to content

Commit 86e6657

Browse files
authored
Fixes to CI config (#10)
1 parent 91046ab commit 86e6657

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/pants.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,24 @@ jobs:
1818
build:
1919
name: Perform CI Checks
2020
needs: org-check
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-20.04
2222
strategy:
2323
matrix:
24+
# The python version to run Pants itself on.
2425
python-version: [3.9]
2526
steps:
2627
- uses: actions/checkout@v3
27-
- uses: pantsbuild/actions/init-pants@v1
28+
- uses: pantsbuild/actions/init-pants@v2
2829
# This action bootstraps pants and manages 2-3 GHA caches.
2930
# See: github.com/pantsbuild/actions/tree/main/init-pants/
3031
with:
3132
pants-python-version: ${{ matrix.python-version }}
3233
# cache0 makes it easy to bust the cache if needed
3334
# just increase the integer to start with a fresh cache
3435
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: ""
3839
# If you're not using a fine-grained remote caching service (see https://www.pantsbuild.org/docs/remote-caching),
3940
# then you may also want to preserve the local Pants cache (lmdb_store). However this must invalidate for
4041
# changes to any file that can affect the build, so may not be practical in larger repos.

0 commit comments

Comments
 (0)