From b2d8e66ef14b25dbdf97e27b281d1f328066b899 Mon Sep 17 00:00:00 2001 From: Regen Date: Mon, 23 Dec 2019 02:34:40 +0900 Subject: [PATCH] Integrate codecov --- .github/workflows/tests.yml | 7 +++++++ tox.ini | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6478e0c..d2ca5b0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,3 +31,10 @@ jobs: - name: Test with tox run: | tox + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: unittests + name: Python ${{ matrix.python }} on ${{ matrix.os }} + fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index 716df64..027a718 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ passenv = INCLUDE LIB LIBPATH Platform VCTools* VSCMD_* WindowsSDK* commands_pre = poetry install commands = - poetry run pytest --cov-report=xml -sv tests + poetry run pytest --cov-report=xml --cov=src -sv tests [testenv:lint] commands =