Upgrade pants
to latest version
#1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yamllint disable rule:line-length | |
name: TwoopsTracker | Continuous Integration | |
"on": | |
pull_request: | |
types: [opened, synchronize, reopened] | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
# yamllint disable-line rule:line-length | |
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Perform CI Checks | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Initialize Pants | |
uses: pantsbuild/actions/init-pants@main | |
with: | |
# cache0 makes it easy to bust the cache if needed | |
gha-cache-key: cache0-py${{ matrix.python_version }} | |
named-caches-hash: ${{ hashFiles('lockfiles/*.json', '**/something-else.lock') }} | |
- name: Bootstrap Pants | |
run: pants --version | |
- name: Check BUILD files | |
run: pants tailor --check update-build-files --check | |
- name: Lint | |
run: | | |
pants lint --lint-skip-formatters twoops_tracker/:: | |
- name: Build | |
run: | | |
pants package twoops_tracker/py:twoopstracker-deps twoops_tracker/py:twoopstracker-srcs |