Skip to content

Commit a8bd84d

Browse files
committed
Add GitHub Actions Pre-commit
This adds a github actions workflow to run pre-commit on pull requests, dev and main branches. It also loops over valid python versions to verify code works with supported python versions. Signed-off-by: David ML Brown Jr <[email protected]>
1 parent f35ac68 commit a8bd84d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pre-commit.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run Pre-Commit
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- dev
8+
- main
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)