Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,19 @@ jobs:
# Fake a TTY
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
run: "python -m tox"
coverage:
name: "Upload coverage"
runs-on: "ubuntu-latest"
needs: tests
steps:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true
18 changes: 9 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
[tox]
envlist = {py38,py310,py311}-tests,py39-tests-{pytz2018.7,pytz_latest}
skip_missing_interpreters = True
work_dir = {env:TOX_WORK_DIR:.tox}

[testenv]
ignore_errors = True
passenv =
LANG
CI
TRAVIS
TRAVIS_BRANCH
TRAVIS_BUILD_ID
TRAVIS_COMMIT
TRAVIS_JOB_ID
TRAVIS_JOB_NUMBER
TRAVIS_PULL_REQUEST
TRAVIS_REPO_SLUG
set_env =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
deps =
coverage
pytest
freezegun
!py36: vdirsyncer
Expand All @@ -26,7 +22,11 @@ deps =
hypothesis

commands =
py.test {posargs}
coverage run -m pytest {posargs}
sh -c "coverage combine -q .tox/.coverage.* && coverage xml || true && coverage report"
allowlist_externals =
coverage
sh

[gh-actions]
python =
Expand Down