Merge pull request #315 from pytoyoda/renovate/pytest-asyncio-1.x #921
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" | |
| on: | |
| workflow_call: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre-commit: | |
| name: "pre-commit" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "⤵️ Check out code from GitHub" | |
| uses: "actions/checkout@v7" | |
| - name: "🐍 Set up Python" | |
| uses: "actions/setup-python@v6" | |
| with: | |
| python-version: "3.13" | |
| - name: "⚙️ Install Poetry" | |
| uses: "abatilo/actions-poetry@v4.0.0" | |
| - name: "⚙️ Install dependencies" | |
| run: "poetry install" | |
| - name: "🚀 Run pre-commit on all files" | |
| run: | | |
| poetry run pre-commit run --all-files --show-diff-on-failure --color=always |