Skip to content

Commit 1abe96f

Browse files
authored
Merge pull request #120 from scipp/ci-pre-commit
Use CI pre-commit action.
2 parents 0c28de4 + b1afefe commit 1abe96f

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ jobs:
1818
- uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.9'
21-
- run: python -m pip install --upgrade pip
22-
- run: python -m pip install -r requirements/ci.txt
23-
- run: tox -e static
24-
- uses: stefanzweifel/git-auto-commit-action@v5
21+
- uses: pre-commit/[email protected]
22+
with:
23+
extra_args: --all-files
24+
- uses: pre-commit-ci/[email protected]
25+
if: always()
2526
with:
26-
commit_message: Apply automatic formatting
27+
msg: Apply automatic formatting
28+
2729
tests:
2830
name: Tests
2931
needs: formatting

template/.github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- uses: actions/setup-python@v4
2828
with:
2929
python-version-file: '.github/workflows/python-version-ci'
30-
- run: python -m pip install --upgrade pip
31-
- run: python -m pip install -r requirements/ci.txt
32-
- run: tox -e static
33-
- uses: stefanzweifel/git-auto-commit-action@v5
30+
- uses: pre-commit/[email protected]
3431
with:
35-
commit_message: Apply automatic formatting
32+
extra_args: --all-files
33+
- uses: pre-commit-ci/[email protected]
34+
if: always()
35+
with:
36+
msg: Apply automatic formatting
3637

3738
tests:
3839
name: Tests

0 commit comments

Comments
 (0)