diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2021-03-22 16:57:35 -0700 |
|---|---|---|
| committer | engn33r <engn33r@users.noreply.github.com> | 2021-03-22 16:57:35 -0700 |
| commit | 7e530ef764a6f3a30c83d4032021147d616ab25c (patch) | |
| tree | f068acb41e9e0b4c1759fc3527e0b52214ec6c1d /.github/workflows/codecoverage.yml | |
| parent | 8bb241cf6b20b5ae7fc07796ee6fe7dac977f1f9 (diff) | |
| download | websocket-client-7e530ef764a6f3a30c83d4032021147d616ab25c.tar.gz | |
Use pytest for CI code coverage
Diffstat (limited to '.github/workflows/codecoverage.yml')
| -rw-r--r-- | .github/workflows/codecoverage.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 13d1e65..3331964 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -14,11 +14,9 @@ jobs: python-version: "3.9" - name: Run test cases for coverage collection run: | - pip install six + pip install six coverage pytest python setup.py install - pip install coverage - coverage run --source=websocket --omit="/*/tests/__init__.py","*/tests/test_cookiejar.py","*/tests/test_websocket.py" websocket/tests/test_websocket.py + pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-report=xml coverage report - coverage xml - name: Submit code coverage report to Codecov.io uses: codecov/codecov-action@v1.2.1 |
