Skip to content

Commit

Permalink
Upgrade to Pants 2.17.0 (#35)
Browse files Browse the repository at this point in the history
This updates this repo to Pants 2.17, via 2.16.

Upgrading to 2.16 requires adjusting for the new approach to tools (no "tool lockfiles").
  • Loading branch information
huonw authored Sep 26, 2023
1 parent ff20d11 commit b94e0b5
Show file tree
Hide file tree
Showing 6 changed files with 333 additions and 1,045 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: pantsbuild/actions/init-pants@v4-scie-pants
- uses: pantsbuild/actions/init-pants@v5-scie-pants
# This action bootstraps pants and manages 2-3 GHA caches.
# See: github.com/pantsbuild/actions/tree/main/init-pants/
with:
Expand All @@ -35,7 +35,7 @@ jobs:
gha-cache-key: v0
# The Python backend uses named_caches for Pip/PEX state,
# so it is appropriate to invalidate on lockfile changes.
named-caches-hash: ${{ hashFiles('lockfiles/*.txt') }}
named-caches-hash: ${{ hashFiles('lockfiles/*') }}
# If you're not using a fine-grained remote caching service (see https://www.pantsbuild.org/docs/remote-caching),
# then you may also want to preserve the local Pants cache (lmdb_store). However this must invalidate for
# changes to any file that can affect the build, so may not be practical in larger repos.
Expand All @@ -50,9 +50,10 @@ jobs:
run: |
pants --version
- name: Check BUILD files
run: pants tailor --check update-build-files --check
run: |
pants tailor --check update-build-files --check ::
- name: Lint and typecheck
run: |
run: |
pants lint check ::
- name: Test
run: |
Expand Down
305 changes: 0 additions & 305 deletions lockfiles/mypy.lock

This file was deleted.

Loading

0 comments on commit b94e0b5

Please sign in to comment.