@@ -21,10 +21,10 @@ jobs:
21
21
runs-on : ubuntu-latest
22
22
strategy :
23
23
matrix :
24
- python-version : [3.7 ]
24
+ python-version : [3.9 ]
25
25
steps :
26
- - uses : actions/checkout@v2
27
- - uses : pantsbuild/actions/init-pants@c0ce05ee4ba288bb2a729a2b77294e9cb6ab66f7
26
+ - uses : actions/checkout@v3
27
+ - uses : pantsbuild/actions/init-pants@v1
28
28
# This action bootstraps pants and manages 2-3 GHA caches.
29
29
# See: github.com/pantsbuild/actions/tree/init-pants/
30
30
# We use an action SHA because there are no tags yet.
34
34
gha-cache-key : cache0-py${{ matrix.python-version }}
35
35
# The Python backend uses named_caches for Pip/PEX state,
36
36
# so it is appropriate to invalidate on lockfile changes.
37
- named-caches-hash : ${{ hashFiles('lockfile.txt ') }}
37
+ named-caches-hash : ${{ hashFiles('python-default.lock ') }}
38
38
# If you're not using a fine-grained remote caching service (see https://www.pantsbuild.org/docs/remote-caching),
39
39
# then you may also want to preserve the local Pants cache (lmdb_store). However this must invalidate for
40
40
# changes to any file that can affect the build, so may not be practical in larger repos.
47
47
# Alternatively you change gha-cache-key to ignore old caches.
48
48
49
49
- name : Setup Python ${{ matrix.python-version }}
50
- uses : actions/setup-python@v1
50
+ uses : actions/setup-python@v4
51
51
with :
52
52
python-version : ${{ matrix.python-version }}
53
53
- name : Check BUILD files
64
64
./pants package ::
65
65
./pants run helloworld/main.py
66
66
- name : Upload pants log
67
- uses : actions/upload-artifact@v2
67
+ uses : actions/upload-artifact@v3
68
68
with :
69
69
name : pants-log
70
70
path : .pants.d/pants.log
0 commit comments