Skip to content

Commit 5510c64

Browse files
committed
feat(ci): Merged pre-commit into test workflow
1 parent a9cb04e commit 5510c64

File tree

2 files changed

+9
-35
lines changed

2 files changed

+9
-35
lines changed

.github/workflows/pre-commit.yml

-32
This file was deleted.

.github/workflows/test.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ jobs:
3535
pip install cython
3636
pip install -e .
3737
pip install coverage
38-
- name: Log complete list of packages
39-
run: |
40-
pip freeze
38+
- run: pip freeze
39+
- run: pip list
4140
- name: Check licenses
4241
run: |
4342
pip install pip-licenses
4443
if pip-licenses | grep -E -v 'Artistic License|LGPL|Public Domain' | grep GNU; then echo 'Please avoid introducing *GPL dependencies'; false; fi
44+
- uses: tj-actions/changed-files@v36
45+
id: file_changes
46+
- uses: pre-commit/[email protected]
47+
with:
48+
extra_args: --files ${{ steps.file_changes.outputs.all_changed_files }}
49+
- uses: pre-commit-ci/[email protected]
50+
if: always()
4551
- name: Run tests
4652
run: |
4753
cd everyvoice && coverage run run_tests.py dev

0 commit comments

Comments
 (0)