Skip to content

Commit

Permalink
Solving coverage issues by moving coverage collection from gh-actions…
Browse files Browse the repository at this point in the history
… to tox

ref:b139755485964657348817f1f501246b32bcd1fc
  • Loading branch information
Losik committed Jun 17, 2021
1 parent bf2b79a commit 0dfa7d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,3 @@ jobs:
- name: Run tox with Python ${{ matrix.python-version }}
run: |
python -m tox
- name: Upload coverage to Codecov
# We only want one upload per tests run
if: ${{ matrix.python-version == '3.8' }}
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
files: .coverage
15 changes: 14 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,24 @@ python =

[testenv]
deps =
coveragepy
requests_mock
pytest
commands =
pytest

# For Python 3.8 we additionally collect test coverage
# infromation and upload it to codecov
[testenv:py38]
deps =
{[testenv]deps}
coveragepy
codecov
passenv =
CI
CODECOV_*
commands =
coverage run --source {envsitepackagesdir}/toloka/client -m pytest
codecov

[testenv:typing]
basepython = python3.8
Expand Down

0 comments on commit 0dfa7d6

Please sign in to comment.