File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ python:
44 - " 3.6"
55
66install :
7- - pip install -r requirements .txt
8- - pip install coverage
7+ - pip install -r test_requirements .txt
8+ - pip install pytest-cov
99 - pip install codecov
1010
1111script :
12- - coverage run setup.py test
12+ - pytest --cov=./
1313
1414after_success :
1515- codecov
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ pipeline {
3434 }
3535 stage(' test' ) {
3636 steps {
37- sh ' python setup.py test'
37+ sh ' pip install --user -r test_requirements.txt'
38+ sh ' pytest'
3839 }
3940 }
4041 stage(' package' ) {
Original file line number Diff line number Diff line change 88 'xarray>=0.11.3,<0.14.0'
99]
1010
11+ TESTS_REQUIRE = [
12+ 'pytest'
13+ ]
14+
15+ EXTRAS_REQUIRE = {
16+ 'testing' : TESTS_REQUIRE
17+ }
18+
1119PACKAGE_DATA = {
1220 'aodntools.ncwriter' : ['*.json' ],
1321 'aodntools.timeseries_products' : ['*.json' ]
2937 zip_safe = False ,
3038 python_requires = '>=3.5' ,
3139 install_requires = INSTALL_REQUIRES ,
40+ tests_require = TESTS_REQUIRE ,
41+ extras_require = EXTRAS_REQUIRE ,
3242 test_suite = 'test_aodntools' ,
3343 classifiers = [
3444 'Development Status :: 5 - Production/Stable' ,
Original file line number Diff line number Diff line change 1+ --index-url https://pypi.python.org/simple/
2+ -r requirements.txt
3+ -e .[testing]
You can’t perform that action at this time.
0 commit comments