File tree Expand file tree Collapse file tree 4 files changed +52
-37
lines changed Expand file tree Collapse file tree 4 files changed +52
-37
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : CI
4
+
5
+ on :
6
+ push :
7
+ branches : [master]
8
+ pull_request :
9
+ branches : [master]
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ python-version : [3.6, 3.7, 3.8]
19
+
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : " Set up Python"
23
+ uses : actions/setup-python@v1
24
+ with :
25
+ python-version : ${{ matrix.python-version }}
26
+
27
+ - name : " Install dependencies"
28
+ run : |
29
+ python -m pip install --upgrade --editable .[dev]
30
+ pip install flake8
31
+
32
+ - name : " Lint"
33
+ run : |
34
+ flake8 *.py pip_check_reqs tests
35
+ pip-extra-reqs pip_check_reqs
36
+ pip-missing-reqs pip_check_reqs
37
+
38
+ - name : " Run tests"
39
+ run : |
40
+ pytest -s -vvv --cov-fail-under 100 --cov=pip_check_reqs/ --cov=tests tests/ --cov-report=xml
41
+
42
+ - name : " Upload coverage to Codecov"
43
+ uses : " codecov/codecov-action@v1"
44
+ with :
45
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 2
2
from codecs import open
3
3
from os import path
4
4
5
+ from pip_check_reqs import __version__
6
+
5
7
here = path .abspath (path .dirname (__file__ ))
6
8
7
9
with open (path .join (here , 'README.rst' ), encoding = 'utf-8' ) as f :
15
17
with open (path .join (here , 'requirements.txt' ), encoding = 'utf-8' ) as f :
16
18
requirements = [s .strip () for s in f .readlines ()]
17
19
18
- from pip_check_reqs import __version__
19
-
20
20
setup (
21
21
name = 'pip_check_reqs' ,
22
22
version = __version__ ,
23
- description =
23
+ description = (
24
24
'Find packages that should or should not be in requirements for a '
25
- 'project' ,
25
+ 'project'
26
+ ),
26
27
long_description = long_description ,
27
28
url = 'https://github.com/r1chardj0n3s/pip-check-reqs' ,
28
29
author = 'Richard Jones' ,
Original file line number Diff line number Diff line change 1
- coverage
2
1
pretend
3
- pytest
2
+ pytest
3
+ pytest-cov
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments