Skip to content

Commit

Permalink
CI: fix codecov again (#9007)
Browse files Browse the repository at this point in the history
Finally, the xml format was required (the sqlite format did work on the other PR for some reason man_shrugging, but xml is the recommended). Found this in their example at https://github.com/codecov/example-python/blob/master/.circleci/config.yml
  • Loading branch information
stsewd authored Mar 10, 2022
1 parent 660c467 commit 60be1bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- run: git submodule update --init
- run: pip install --user tox
- run: tox -e py38
- codecov/upload:
file: .coverage
- codecov/upload

tests-embedapi:
docker:
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ basepython =
commands =
/bin/sh -c '\
export DJANGO_SETTINGS_MODULE=readthedocs.settings.test; \
pytest --cov-report= --cov-config .coveragerc --cov=. --pyargs readthedocs --suppress-no-test-exit-code -m "not proxito and not embed_api" {posargs:{env:TOX_POSARGS:-m "not search and not proxito and not embed_api"}}'
pytest --cov-report=xml --cov-config .coveragerc --cov=. --pyargs readthedocs --suppress-no-test-exit-code -m "not proxito and not embed_api" {posargs:{env:TOX_POSARGS:-m "not search and not proxito and not embed_api"}}'

/bin/sh -c '\
export DJANGO_SETTINGS_MODULE=readthedocs.settings.proxito.test; \
pytest --cov-report= --cov-config .coveragerc --cov=. --cov-append --pyargs readthedocs -m proxito --suppress-no-test-exit-code {posargs}'
pytest --cov-report=xml --cov-config .coveragerc --cov=. --cov-append --pyargs readthedocs -m proxito --suppress-no-test-exit-code {posargs}'

[testenv:docs]
description = Build readthedocs user documentation
Expand Down

0 comments on commit 60be1bd

Please sign in to comment.