Skip to content

Commit 4e73e71

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

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check for linting issues
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+
build:
12+
strategy:
13+
matrix:
14+
python-version: [3.8]
15+
runs-on: ubuntu-16.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
- name: Setup Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Cache pip
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.cache/pip
27+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
28+
restore-keys: |
29+
${{ runner.os }}-pip-
30+
${{ runner.os }}-
31+
- name: Install project dependencies
32+
run: |
33+
pip install --upgrade pip
34+
pip install nox
35+
pip install coveralls
36+
- name: Check for linting issues
37+
run: nox -s lint-3.8

0 commit comments

Comments
 (0)