Skip to content

Commit 2832c1b

Browse files
committed
Run lint during CI
1 parent 39b0496 commit 2832c1b

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
name: test
22

3-
on:
3+
on:
44
- push
55
- pull_request
66

77
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.9
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip setuptools wheel
19+
python -m pip install -r requirements-dev.txt
20+
- name: Run flake8
21+
run: flake8
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.cache/pip
25+
key: ${{ runner.os }}-pip
826
build:
927
runs-on: ubuntu-latest
1028
strategy:
@@ -26,7 +44,7 @@ jobs:
2644
with:
2745
path: ~/.cache/pip
2846
key: ${{ runner.os }}-pip
29-
47+
3048
deploy:
3149
name: Build deploy
3250
runs-on: ubuntu-latest
@@ -39,4 +57,3 @@ jobs:
3957
build: true
4058
# only upload if a tag is pushed (otherwise just build & check)
4159
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
42-

0 commit comments

Comments
 (0)