Backport PR #3010 on branch 1.3.x ([pre-commit.ci] pre-commit autoupdate) #3403
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
name: build | |
on: | |
push: | |
branches: [main, "[0-9]+.[0-9]+.x"] | |
pull_request: | |
branches: [main, "[0-9]+.[0-9]+.x"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
cache-dependency-path: "**/pyproject.toml" | |
- name: Install build dependencies | |
run: python -m pip install --upgrade pip wheel twine build | |
- name: Build package | |
run: python -m build | |
- name: Check package | |
run: twine check --strict dist/*.whl |