Codecov -> Coveralls (#4)

Migrate codecov to coveralls
This commit is contained in:
Stan Triepels
2022-10-09 01:51:09 +02:00
committed by GitHub
parent c4ebfc66b9
commit 89dd7608f0
2 changed files with 26 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ on:
branches:
- master
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
@@ -52,15 +52,27 @@ jobs:
- name: Run Tests
run: |
poetry run pytest --cov=./django_q --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
- name: Upload to coveralls
run: |
python -m pip install coveralls
coveralls --service=github
env:
PYTHON: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON, DJANGO
fail_ci_if_error: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}-django-${{ matrix.django }}
COVERALLS_PARALLEL: true
- name: Build docs
run: |
poetry run sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
finish:
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Upload to coveralls
run: |
python -m pip install --upgrade pip
python -m pip install coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}