Skip to content

Commit 2511ec3

Browse files
authored
Update CI config. (#116)
1 parent e5cd4ce commit 2511ec3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/pants.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ 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:
2424
python-version: [3.9]
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: pantsbuild/actions/init-pants@v1
27+
- uses: pantsbuild/actions/init-pants@v2
2828
# This action bootstraps pants and manages 2-3 GHA caches.
29-
# See: github.com/pantsbuild/actions/tree/init-pants/
29+
# See: github.com/pantsbuild/actions/tree/main/init-pants/
3030
with:
3131
pants-python-version: ${{ matrix.python-version }}
3232
# cache0 makes it easy to bust the cache if needed
@@ -45,11 +45,6 @@ jobs:
4545
# but will cause the cache entry to grow without bound over time.
4646
# See https://pants.readme.io/docs/using-pants-in-ci for tips on how to periodically clean it up.
4747
# Alternatively you change gha-cache-key to ignore old caches.
48-
49-
- name: Setup Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v4
51-
with:
52-
python-version: ${{ matrix.python-version }}
5348
- name: Check BUILD files
5449
run: ./pants tailor --check update-build-files --check
5550
- name: Lint and typecheck

0 commit comments

Comments
 (0)