From f149ab8d2db14eb35fe5f0e9dce68d00b3f8a925 Mon Sep 17 00:00:00 2001 From: jrootjunior Date: Wed, 22 Jan 2020 12:59:32 +0200 Subject: [PATCH] Try to add codecov --- .github/workflows/tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e1c35a44..55cc01c7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,4 +42,12 @@ jobs: - name: Run tests run: | - poetry run pytest + poetry run pytest --cov=aiogram --cov-config .coveragerc --cov-report=xml + + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittests + name: py-${{ matrix.python-version }}-${{ matrix.os }} + fail_ci_if_error: true