Skip to content

Commit 65f40f6

Browse files
committed
Add Github Actions workflow for lint checks
Signed-off-by: Nabarun Pal <[email protected]>
1 parent 9c76c3c commit 65f40f6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches-ignore:
5+
- django-2.2
6+
pull_request:
7+
branches-ignore:
8+
- django-2.2
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-16.04
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Setup Python 3.8
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.8
20+
- name: Cache pip
21+
uses: actions/cache@v2
22+
with:
23+
path: ~/.cache/pip
24+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
25+
restore-keys: |
26+
${{ runner.os }}-pip-
27+
${{ runner.os }}-
28+
- name: Install project dependencies
29+
run: |
30+
pip install --upgrade pip
31+
pip install nox
32+
pip install coveralls
33+
- name: Check for linting issues
34+
run: nox -s lint-3.8

0 commit comments

Comments
 (0)