Skip to content

Commit

Permalink
Fix coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
aklajnert committed Jan 1, 2025
1 parent afa2122 commit bb3b17e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:
nox -s tests-${{ matrix.python-version }}
env:
PLATFORM: ${{ matrix.platform }}
- name: Update coverage
if: matrix.python-version != 'pypy3.8'
uses: codecov/codecov-action@v3
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}


mypy:
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ pytest-subprocess
:target: https://pypi.org/project/pytest-subprocess
:alt: Python versions

.. image:: https://codecov.io/gh/aklajnert/pytest-subprocess/branch/master/graph/badge.svg?token=JAU1cGoYL8
:target: https://codecov.io/gh/aklajnert/pytest-subprocess
.. image:: https://codecov.io/github/aklajnert/pytest-subprocess/graph/badge.svg?token=JAU1cGoYL8
:target: https://codecov.io/github/aklajnert/pytest-subprocess

.. image:: https://readthedocs.org/projects/pytest-subprocess/badge/?version=latest
:target: https://pytest-subprocess.readthedocs.io/en/latest/?badge=latest
Expand Down
7 changes: 6 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
def tests(session):
session.install(".[test]")
session.run(
"coverage", "run", "-m", "pytest", "--timeout=300", "-v", *session.posargs
"pytest",
"--cov",
"--junitxml=junit.xml",
"-o",
"junit_family=legacy",
*session.posargs
)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def read(fname):
extras_require={
"test": [
"pytest>=4.0",
"coverage",
"pytest-cov",
"docutils>=0.12",
"Pygments>=2.0",
"pytest-rerunfailures",
Expand Down

0 comments on commit bb3b17e

Please sign in to comment.