Merge pull request #58 from ritual-net/dev #6
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
# pre-commit workflow | |
# | |
# Ensures the codebase passes the pre-commit stack. | |
name: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: | |
- dev | |
- main | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: pip | |
- name: Install dependencies (python) | |
run: | | |
pip install -r requirements.lock | |
- name: Run pre-commit hooks | |
uses: pre-commit/action@v3.0.0 | |
with: | |
extra_args: --all-files --show-diff-on-failure |