Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove codecov from tox, use GH action instead #2568

Merged
merged 2 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/hypothesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ jobs:

- name: Run Hypothesis tests
run: tox -e hypothesis,coverage

- name: Upload Python coverage to codecov
uses: codecov/codecov-action@v3
with:
flags: hypothesis-py
fail_ci_if_error: true
6 changes: 6 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,9 @@ jobs:
run: tox
env:
PYTHONDEVMODE: 1

- name: Upload Python coverage to codecov
uses: codecov/codecov-action@v3
with:
flags: python
fail_ci_if_error: true
25 changes: 4 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ envlist =
py311,
py39,
coverage,
codecov,
docs,
package_description
py38,
Expand Down Expand Up @@ -161,22 +160,6 @@ commands = coverage combine
depends = py39, py38, py37, pypy3
parallel_show_output = True

[testenv:codecov]
description = [only run on CI]: upload coverage data to codecov (depends on coverage running first)
passenv = {[testenv]passenv}
CODECOV_*
GITHUB_ACTION
GITHUB_REF
GITHUB_HEAD_REF
GITHUB_RUN_ID
GITHUB_SHA
GITHUB_REPOSITORY
deps = codecov
skip_install = True
changedir = {toxinidir}
depends = coverage
commands = codecov -e $TOXENV --file "{toxworkdir}/coverage.xml" -F python {posargs}

[testenv:X]
description = print the positional arguments passed in with echo
commands = echo {posargs}
Expand Down Expand Up @@ -209,10 +192,10 @@ source = src/sourmash/

[gh-actions]
python =
3.10: py310, docs, package_description, coverage, codecov
3.11: py311, coverage, codecov
3.9: py39, coverage, codecov
3.8: py38, coverage, codecov
3.10: py310, docs, package_description, coverage
3.11: py311, coverage
3.9: py39, coverage
3.8: py38, coverage

[flake8]
max-complexity = 22
Expand Down