diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2021-05-17 16:50:19 -0700 |
|---|---|---|
| committer | engn33r <engn33r@users.noreply.github.com> | 2021-05-17 16:50:19 -0700 |
| commit | dce714c0aca909ed94cdb0c6ebdf87cbfcde7d93 (patch) | |
| tree | fa87a14fd01596d11cc636ce3afb9737a0576ad5 | |
| parent | 7b0b3969a749c93af2cfe91abde072bdb9b8c1c1 (diff) | |
| download | websocket-client-dce714c0aca909ed94cdb0c6ebdf87cbfcde7d93.tar.gz | |
Add WEBSOCKET_CLIENT_CA_BUNDLE env var in better way
| -rw-r--r-- | .github/workflows/build.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/codecoverage.yml | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da97868..570eb89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: python-version: [3.6, 3.7, 3.8, 3.9] - os: [ubuntu-latest, macOS-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - name: Check out source repository diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 8c0eb2c..0412e16 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -21,9 +21,18 @@ jobs: coverage report - name: Run test cases for coverage collection run: | - pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-report=xml + pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc coverage report env: TEST_WITH_INTERNET: 1 + - name: Run with extra environment variable and create report + run: | + python -c "import ssl; print(ssl.get_default_verify_paths().capath)" + pytest -vrP --cov=websocket websocket/tests --cov-config=.coveragerc --cov-append -k "testSSLopt" + coverage xml + coverage report + env: + TEST_WITH_INTERNET: 1 + WEBSOCKET_CLIENT_CA_BUNDLE: "/usr/lib/ssl/certs" - name: Submit code coverage report to Codecov.io uses: codecov/codecov-action@v1.2.1 |
