Skip to content

Commit

Permalink
edit pytest in CI to show only verbose failures
Browse files Browse the repository at this point in the history
  • Loading branch information
engn33r committed Jan 8, 2024
1 parent 75ba91a commit cd4fbb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python3 -c "import setuptools; print('Setup tools version'); print(setuptools.__version__)"
- name: Run tests
run: |
pytest websocket/tests -v -rP
pytest websocket/tests -v -r f
env:
TEST_WITH_INTERNET: 1
LOCAL_WS_SERVER_PORT: 8765
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codecoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
pip3 install coverage pytest pytest-cov setuptools
python3 -c "import setuptools; print('Setup tools version'); print(setuptools.__version__)"
pip3 install -e .
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc
pytest -v -r f --cov=websocket websocket/tests --cov-config=.coveragerc
coverage report
- name: Install wsaccel and python-socks, then run all test cases for coverage collection
run: |
pip3 install wsaccel python-socks
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append
pytest -v -r f --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append
coverage report
env:
TEST_WITH_INTERNET: 1
Expand All @@ -35,7 +35,7 @@ jobs:
run: |
ls $WEBSOCKET_CLIENT_CA_BUNDLE
python3 -c "import ssl; print(ssl.get_default_verify_paths().capath)"
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt"
pytest -v -r f --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt"
coverage report -m
env:
TEST_WITH_INTERNET: 1
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Run SSL test with extra environment variable and create report
run: |
python3 -c "import ssl; print(ssl.get_default_verify_paths().capath)"
pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt"
pytest -v -r f --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt"
coverage xml
env:
TEST_WITH_INTERNET: 1
Expand Down

0 comments on commit cd4fbb3

Please sign in to comment.