Skip to content

Commit bd30826

Browse files
orffelixxm
authored andcommitted
Used GitHub actions for isort and flake8 tests.
1 parent cfddca5 commit bd30826

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/linters.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Linters
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
flake8:
8+
name: flake8
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.9
17+
- run: pip3 install flake8
18+
- name: flake8
19+
uses: liskin/gh-problem-matcher-wrap@v1
20+
with:
21+
linters: flake8
22+
run: flake8
23+
24+
isort:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
- name: Set up Python
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: 3.9
33+
- run: pip3 install isort
34+
- name: isort
35+
uses: liskin/gh-problem-matcher-wrap@v1
36+
with:
37+
linters: isort
38+
run: isort --check --diff django tests scripts

0 commit comments

Comments
 (0)