Skip to content

Commit 708f0da

Browse files
committed
add linters to github actions
1 parent 328ac78 commit 708f0da

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@ name: Python package
33
on: [push]
44

55
jobs:
6+
linters:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.7, 3.8, 3.9]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
pip install -r tests/test-requirements.txt
23+
- name: Mypy
24+
run: mypy piccolo
25+
- name: Flake8
26+
run: flake8 piccolo
27+
628
postgres:
729
runs-on: ubuntu-latest
830
strategy:

0 commit comments

Comments
 (0)