[CI] test using setup-uv
to build and cache environment
#3552
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: changelog | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- opened | |
- synchronize | |
- reopened | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: astral-sh/setup-uv@f3bcaebff5eace81a1c062af9f9011aae482ca9d # v3.1.7 | |
with: | |
version: "0.4.22" | |
enable-cache: true | |
cache-dependency-glob: "pyproject.toml" | |
- run: uv python install 3 | |
- run: uv pip install . | |
- run: uv pip install towncrier | |
- run: towncrier check | |
- run: towncrier build --draft | grep -P '#${{ github.event.number }}' |