Skip to content

Commit

Permalink
ops: actions: fix pre-commmit check
Browse files Browse the repository at this point in the history
  • Loading branch information
kerberizer committed Jun 5, 2024
1 parent 61c9c2f commit 62828bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ jobs:
run: poetry install --no-interaction

- name: Run pre-commit
run: poetry run pre-commit
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: >-
if [[ $GITHUB_REF == refs/heads/main ]]; then
SKIP=no-commit-to-branch poetry run pre-commit run --all-files
else
poetry run pre-commit run --all-files
fi
- name: Run tests
env:
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
Expand Down

0 comments on commit 62828bb

Please sign in to comment.