Merge pull request #67 from RedAtman/dev #113
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 | |
on: | |
push: | |
# branches: | |
# - main | |
# pull_request: | |
# branches: | |
# - main | |
jobs: | |
pre-commit: | |
if: github.event_name == 'push' && !(github.event.pull_request.merged == true) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json | |
python-version: 3.8.18 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pre-commit | |
- name: Run pre-commit | |
run: pre-commit run --all-files |