Skip to content

Commit

Permalink
fix(ci): only run pre-commit on files in the main EV repo
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise authored and roedoejet committed Sep 23, 2024
1 parent 6a291f0 commit 96bc4d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
if pip-licenses | grep -E -v 'Artistic License|LGPL|Public Domain' | grep GNU; then echo 'Please avoid introducing *GPL dependencies'; false; fi
- uses: tj-actions/changed-files@v45
id: file_changes
with:
# Only run pre-commit on EV files themselves, not on submodules
# See https://github.com/EveryVoiceTTS/EveryVoice/issues/555
exclude_submodules: true
- name: Custom replacement for pre-commit/action
# pre-commit/action is not compatible with conda-incubator/setup-miniconda because it sets the shell wrong.
run: python -m pre_commit run --show-diff-on-failure --color=always --files ${{ steps.file_changes.outputs.all_changed_files }}
Expand Down

0 comments on commit 96bc4d6

Please sign in to comment.