Run pre-commit hooks after push by TopCoder2K #19
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: pre_commit_hooks_workflow | |
run-name: Run pre-commit hooks after push by ${{ github.actor }} | |
on: [push] | |
jobs: | |
run-pre-commit-hooks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Run pre-commit hooks | |
run: poetry run pre-commit run --all-files |