-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.15 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: commit
on:
push:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with: { python-version: 3.8 }
- name: Install pip and pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: build
run: pipenv install --dev
- name: lint stats
run: pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: lint
run: pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --ignore=C901
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with: { python-version: 3.8 }
- name: Install pip and pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: build
run: pipenv install --dev
- name: test
run: pipenv run python setup.py test