Skip to content

Commit e20d2ad

Browse files
committed
Run lint and test on GH actions
1 parent ea5f404 commit e20d2ad

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
- uses: pre-commit/[email protected]
17+
- uses: pre-commit-ci/[email protected]
18+
if: always()
19+
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
python-version:
26+
- "3.8"
27+
- "3.9"
28+
- "3.10"
29+
- "3.11"
30+
- "3.12"
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- run: python -m pip install tox
37+
- run: tox -f py$(echo ${{ matrix.python-version }} | tr -d .)

0 commit comments

Comments
 (0)