-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 970 Bytes
/
pythonpackage.yml
File metadata and controls
39 lines (35 loc) · 970 Bytes
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
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install pip
run:
python -m pip install --upgrade pip
- name: Install dependencies
run:
pip install -r requirements.txt
- name: install flake8
run:
pip install flake8
- name: Lint with flake8
run:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Install package
run: |
python setup.py install
- name: Test with unittest
working-directory: ./tests
run:
python -m unittest tests.py
- name: Lint with flake8
run:
# lint everything
flake8 . --count --show-source --statistics