File tree Expand file tree Collapse file tree 3 files changed +51
-19
lines changed Expand file tree Collapse file tree 3 files changed +51
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ build :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - name : Setup python
10
+ uses : actions/setup-python@v2
11
+ with :
12
+ python-version : 3.8
13
+ architecture : x64
14
+ - uses : actions/cache@v1
15
+ with :
16
+ path : ~/.cache/pip
17
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-pip-
20
+ - run : pip install --upgrade -r requirements_dev.txt
21
+ - run : pip install black==19.10b0
22
+ - run : black --check *.py */
23
+ - run : isort --check-only *.py */
24
+ - run : flake8
Original file line number Diff line number Diff line change
1
+ name : Test
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ build :
6
+ runs-on : ubuntu-latest
7
+ strategy :
8
+ matrix :
9
+ python-version : [ '3.5', '3.6', '3.7', '3.8']
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Setup python
13
+ uses : actions/setup-python@v2
14
+ with :
15
+ python-version : ${{ matrix.python-version }}
16
+ architecture : x64
17
+ - uses : actions/cache@v1
18
+ with :
19
+ path : ~/.cache/pip
20
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
21
+ restore-keys : |
22
+ ${{ runner.os }}-pip-
23
+ - run : pip install --upgrade -r requirements_dev.txt
24
+ - run : py.test --cov .
25
+ - env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ run : coveralls
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments