Skip to content

Commit a92f7d8

Browse files
CI: Add GitHub CI job to check pre-commit to .github/workflows/main.yml
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent f901615 commit a92f7d8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ env:
2525
PIP_DISABLE_PIP_VERSION_CHECK: "1" # Reduce noise in logs
2626

2727
jobs:
28+
pre-commit:
29+
env:
30+
SKIP: pytest,pytype,tox,no-commit-to-branch
31+
runs-on: ubuntu-22.04
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: actions/setup-python@v4
35+
with:
36+
python-version: 3.11
37+
- uses: pre-commit/[email protected]
38+
- uses: pre-commit-ci/[email protected]
39+
if: always()
40+
2841
test:
2942
strategy:
3043
# See: https://github.com/xenserver/python-libs/pull/26#discussion_r1179482169

0 commit comments

Comments
 (0)