Skip to content

Commit 296d784

Browse files
.github/workflows/main.yml: Add CI job for running pre-commit
1 parent 0630f1f commit 296d784

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: .github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ env:
2020
PIP_DISABLE_PIP_VERSION_CHECK: "1" # Reduce noise in logs
2121

2222
jobs:
23+
pre-commit:
24+
env:
25+
SKIP: pytest,pytype,no-commit-to-branch
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-python@v4
30+
with:
31+
python-version: 3.11
32+
- uses: pre-commit/[email protected]
33+
- uses: pre-commit-ci/[email protected]
34+
if: always()
35+
2336
test:
2437
strategy:
2538
# See: https://github.com/xenserver/python-libs/pull/26#discussion_r1179482169

0 commit comments

Comments
 (0)