Skip to content

Commit 7a77e12

Browse files
committed
Use pre-commit GH action
1 parent 0a1b765 commit 7a77e12

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,18 @@ jobs:
55
linters:
66
name: lint
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
python-version: [3.7, 3.8]
118
steps:
129
- uses: actions/checkout@master
13-
- name: Install
14-
uses: abatilo/[email protected]
10+
- uses: actions/setup-python@v1
1511
with:
16-
python-version: ${{ matrix.python-version }}
17-
poetry_version: 1.0
18-
args: install
19-
- name: Lint with pre-commit
20-
uses: abatilo/[email protected]
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
poetry_version: 1.0
24-
args: run pre-commit run --all-files
12+
python-version: 3.8
13+
- uses: pre-commit/[email protected]
2514
pytest:
2615
name: pytest
2716
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: [3.7, 3.8]
2820
steps:
2921
- uses: actions/checkout@master
3022
- name: Install

0 commit comments

Comments
 (0)