From 50f6288c86614607d2de666962e619ce5a64efe4 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 1 May 2021 11:27:05 +0200 Subject: [PATCH] Move codecov to GitHub Actions --- .github/workflows/test.yml | 4 ++++ .travis.yml | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a5c331f7..7442f5ede 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,3 +25,7 @@ jobs: - name: Test with tox run: tox + + - uses: codecov/codecov-action@v1 + with: + directory: '.tox/reports' diff --git a/.travis.yml b/.travis.yml index 10c800ba3..001242b79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,11 +17,10 @@ before_script: - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter before-build; fi" # command to install dependencies install: - - pip install -U tox-travis setuptools codecov + - pip install -U tox-travis setuptools # command to run tests script: tox after_success: - - codecov --file .tox/reports/*/coverage.xml - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi" - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi" notifications: