Skip to content

Commit 02eb6c4

Browse files
committed
Fix no numpy coe coverage CI
1 parent d3b11c0 commit 02eb6c4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/codecoverage.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ jobs:
1414
python-version: "3.9"
1515
- name: Run test cases without internet to verify no offline test failures
1616
run: |
17-
pip install coverage pytest pytest-cov setuptools PySocks numpy
17+
pip install coverage pytest pytest-cov setuptools PySocks
1818
python -c "import setuptools; print('Setup tools version'); print(setuptools.__version__)"
1919
python setup.py install
20-
pytest -vrP --cov=websocket websocket/tests
20+
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc
2121
coverage report
22-
- name: Run test cases for coverage collection
22+
- name: Run test_abnf.py without numpy
2323
run: |
24-
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc
24+
pip uninstall numpy
25+
pytest -vrP --cov=websocket websocket/tests/test_abnf.py --cov-config=.coveragerc --cov-append
2526
env:
2627
TEST_WITH_INTERNET: 1
27-
- name: Run test_abnf.py without numpy and append to coverage
28+
- name: Install numpy, then run test cases for coverage collection
2829
run: |
29-
pip uninstall numpy
30-
pytest -vrP --cov=websocket websocket/tests/test_abnf.py --cov-config=.coveragerc --cov-append
30+
pip install numpy
31+
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append
3132
env:
3233
TEST_WITH_INTERNET: 1
3334
- name: Run with extra environment variable and create report

0 commit comments

Comments
 (0)