Skip to content

Commit d3b11c0

Browse files
committed
Add code coverage for no numpy case
1 parent ce6d609 commit d3b11c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/codecoverage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ jobs:
2222
- name: Run test cases for coverage collection
2323
run: |
2424
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc
25-
coverage report
25+
env:
26+
TEST_WITH_INTERNET: 1
27+
- name: Run test_abnf.py without numpy and append to coverage
28+
run: |
29+
pip uninstall numpy
30+
pytest -vrP --cov=websocket websocket/tests/test_abnf.py --cov-config=.coveragerc --cov-append
2631
env:
2732
TEST_WITH_INTERNET: 1
2833
- name: Run with extra environment variable and create report
2934
run: |
3035
python -c "import ssl; print(ssl.get_default_verify_paths().capath)"
3136
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt"
3237
coverage xml
33-
coverage report
3438
env:
3539
TEST_WITH_INTERNET: 1
3640
WEBSOCKET_CLIENT_CA_BUNDLE: "/usr/lib/ssl/certs"

0 commit comments

Comments
 (0)