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

GHA: Send coverage to Codecov #117

Merged
merged 5 commits into from Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -10,6 +10,14 @@ jobs:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
# Include new variables for Codecov
- os: ubuntu-latest
codecov-flag: GHA_Ubuntu
- os: macOS-latest
codecov-flag: GHA_macOS
- os: windows-latest
codecov-flag: GHA_Windows

steps:
- uses: actions/checkout@v1
Expand Down Expand Up @@ -61,3 +69,11 @@ jobs:
shell: bash
run: |
tox -e py

- name: Upload coverage
if: success()
run: |
curl -s https://codecov.io/bash -o codecov.sh
bash codecov.sh -F ${{ matrix.codecov-flag }}
env:
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -17,4 +17,4 @@ script:
- tox

after_success:
- pip install -U codecov && codecov
- pip install -U codecov && codecov --flags TravisCI
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -6,7 +6,7 @@ envlist =
extras =
tests
commands =
{envpython} -m pytest --cov humanize --cov tests {posargs}
{envpython} -m pytest --cov humanize --cov tests --cov-report xml {posargs}

[testenv:lint]
deps = pre-commit
Expand Down