File tree Expand file tree Collapse file tree 4 files changed +64
-23
lines changed Expand file tree Collapse file tree 4 files changed +64
-23
lines changed Original file line number Diff line number Diff line change 25
25
with :
26
26
python-version : ${{ matrix.python-version }}
27
27
28
+ - name : Get pip cache dir
29
+ id : pip-cache
30
+ run : |
31
+ echo "::set-output name=dir::$(pip cache dir)"
32
+
33
+ - name : pip cache
34
+ uses : actions/cache@v2
35
+ with :
36
+ path : ${{ steps.pip-cache.outputs.dir }}
37
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-pip-
40
+
28
41
- name : Install
29
42
run : |
30
43
pip install tox
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ packages =
21
21
libmodernize.fixes
22
22
py_modules = modernize
23
23
zip_safe = False
24
- tests_require = nose
25
24
python_requires = ~=3.6
26
25
install_requires = fissix
27
26
@@ -33,6 +32,10 @@ console_scripts =
33
32
[options.extras_require]
34
33
docs =
35
34
sphinx~=3.2
35
+ test =
36
+ pytest
37
+ pytest-cov
38
+ coverage>=5.3
36
39
37
40
[bdist_wheel]
38
41
universal = 1
@@ -46,3 +49,49 @@ extend-ignore =
46
49
[isort]
47
50
profile = black
48
51
add_imports =from __future__ import generator_stop
52
+
53
+ [tool:pytest]
54
+ addopts =
55
+ --strict-config
56
+ --strict-markers
57
+ --cov
58
+ --cov-fail-under =91.53
59
+ --cov-report =term-missing:skip-covered
60
+ xfail_strict = True
61
+ junit_family = xunit2
62
+ filterwarnings =
63
+ error
64
+
65
+ [coverage:run]
66
+ branch = True
67
+ source_pkgs =
68
+ modernize
69
+ libmodernize
70
+ source =
71
+ tests
72
+
73
+ [coverage:paths]
74
+ source =
75
+ .
76
+ .tox/*/lib/*/site-packages/
77
+ .tox\\*\\Lib\\site-packages\\
78
+
79
+ [tox:tox]
80
+ envlist =
81
+ py{36,37,38},lint
82
+
83
+ [testenv]
84
+ extras = test
85
+ commands = pytest {posargs}
86
+
87
+ [testenv:coveralls]
88
+ passenv = GITHUB_*
89
+ deps =
90
+ coveralls
91
+ coverage>=5.3
92
+ commands = coveralls
93
+
94
+ [testenv:lint]
95
+ deps = pre-commit
96
+ commands = pre-commit run --all-files --show-diff-on-failure {posargs}
97
+ skip_install = true
Original file line number Diff line number Diff line change 13
13
raise Exception ("couldn't find version number" )
14
14
version = version_match .group (1 )
15
15
16
- setup (version = version , test_suite = "nose.collector" )
16
+ setup (version = version )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments