chore(deps): Bump the "tests" group with 1 update across multiple ecosystems #2
Workflow file for this run
This file contains hidden or 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: Pre-Commit Checks | |
| on: | |
| pull_request: | |
| types: [ opened, reopened, synchronize, ready_for_review ] | |
| branches: [ main ] | |
| jobs: | |
| pre-commit: | |
| name: Pre-Commit Checks | |
| permissions: | |
| pull-requests: read | |
| contents: read | |
| statuses: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: checkout | |
| name: Checkout code | |
| uses: actions/checkout@v6 | |
| - id: setup-python | |
| name: Set up Python 3.14 | |
| uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 | |
| with: | |
| python-version: 3.14 | |
| - id: install-tools | |
| name: Install Tools with uv | |
| run: | | |
| uv tool install pre-commit --with pre-commit-uv | |
| # If we've cached the pre-commit environment, restore it based on the hash of the pre-commit config. | |
| - id: cache | |
| name: Restore cached pre-commit environment | |
| uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
| - id: setup-asdf | |
| name: Setup ASDF | |
| uses: asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47 | |
| - id: restore-asdf-tools | |
| name: Restore ASDF tools from cache | |
| uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae | |
| with: | |
| key: ${{ runner.os }}-asdf-${{ hashFiles('.tool-versions') }} | |
| restore-keys: | | |
| ${{ runner.os }}-asdf- | |
| path: | | |
| ~/.asdf/plugins | |
| ~/.asdf/installs | |
| - id: install-asdf | |
| name: Install ASDF tools on cache-miss | |
| if: ${{ steps.restore-asdf-tools.outputs.cache-hit != 'true' }} | |
| uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 | |
| - id: asdf-reshim | |
| name: Reshim installed ASDF tools | |
| run: asdf reshim | |
| - id: pre-commit | |
| name: Run pre-commit checks | |
| run: uv run pre-commit run --all-files --show-diff-on-failure | |
| - id: set-status-check | |
| name: Set Status Check | |
| if: always() | |
| uses: launchbynttdata/launch-workflows/.github/actions/update-status-check@088489d7b5f9ee3e0f63110b7fa5a13f7fd523e2 | |
| with: | |
| check_name: "Pre-Commit Checks" | |
| status: ${{ steps.pre-commit.outcome == 'success' && 'success' || | |
| steps.pre-commit.outcome == 'failure' && 'failure' || 'error' }} | |
| description: "Pre-Commit Checks ${{steps.pre-commit.outcome }}" | |
| target_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ | |
| github.run_id }}" |