summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-09-18 11:43:16 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-09-18 12:13:55 -0500
commitf258d713a915014da5bdc9fb240deb939d5ab011 (patch)
tree606af85383145518cef54f75c98859674eabfd54 /.github
parent30754d2394a16b612366e03d6085dcc3d6f2e200 (diff)
downloadrequests-cache-f258d713a915014da5bdc9fb240deb939d5ab011.tar.gz
Switch from coveralls to codecov
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml20
1 files changed, 5 insertions, 15 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1d7ca42..8194381 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,7 +9,7 @@ on:
workflow_dispatch:
env:
LATEST_PY_VERSION: 3.9
- COVERAGE_ARGS: '--cov --cov-report=term --cov-report=html'
+ COVERAGE_ARGS: '--cov --cov-report=term --cov-report=xml'
XDIST_ARGS: '--numprocesses=auto --dist=loadfile'
jobs:
@@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
- python-version: [3.7, 3.8, 3.9, 3.10.0-rc.1]
+ python-version: [3.7, 3.8, 3.9, 3.10.0-rc.2]
fail-fast: false
services:
nginx:
@@ -56,11 +56,6 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install -v -E all
- - name: Workaround for issue with poetry package extras (python 3.10 only)
- if: ${{ startsWith(matrix.python-version, '3.10') }}
- run: |
- source $VENV
- pip install -U cattrs
# Run tests with coverage report
- name: Run tests
@@ -69,15 +64,10 @@ jobs:
pytest -rs -x tests/unit ${{ env.XDIST_ARGS }} ${{ env.COVERAGE_ARGS }}
pytest -rs -x tests/integration --cov-append ${{ env.XDIST_ARGS }} ${{ env.COVERAGE_ARGS }}
- # Latest python version: send coverage report to coveralls
- - name: Run coveralls
+ # Latest python version: send coverage report to codecov
+ - name: "Upload coverage report to Codecov"
if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- source $VENV
- pip install coveralls
- coveralls --service=github
+ uses: codecov/codecov-action@v2
# Run code analysis checks via pre-commit hooks
analyze: