Skip to content

Commit

Permalink
Move code coverage collection to codecov (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Jan 6, 2021
1 parent ecab576 commit bdb44b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv
- name: Install dependencies
run: python -m pip install --upgrade coveralls tox
run: python -m pip install --upgrade codecov tox
- name: Run tox targets for ${{ matrix.python-version }}
run: |
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox
- name: Upload coverage
run: |
coverage combine
coveralls --rcfile=setup.cfg
codecov
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ django-cors-headers
:target: https://github.com/adamchainz/django-cors-headers/actions?workflow=CI

.. image:: https://img.shields.io/coveralls/github/adamchainz/django-cors-headers/master?style=for-the-badge
:target: https://coveralls.io/r/adamchainz/django-cors-headers
:target: https://app.codecov.io/gh/adamchainz/django-cors-headers

.. image:: https://img.shields.io/pypi/v/django-cors-headers.svg?style=for-the-badge
:target: https://pypi.org/project/django-cors-headers/
Expand Down

0 comments on commit bdb44b6

Please sign in to comment.