From f6b85236fcc3e908c5c1a50d194330eb0a0efc97 Mon Sep 17 00:00:00 2001 From: Anowar Shajib Date: Fri, 1 Dec 2023 14:36:51 -0600 Subject: [PATCH] Add codecov --- .github/workflows/ci_test.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index a9fd30c..844caa3 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -37,16 +37,17 @@ jobs: # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest --cov=hierarc + - name: Test with pytest + run: | + pytest --cov=./ --cov-report=xml + codecov - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - files: ./coverage.xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + files: ./coverage.xml # - name: Coveralls # env: