From 1d392348ba2944f07fa7dba0cf77fc06dc21910c Mon Sep 17 00:00:00 2001 From: Daniel Stoops Date: Mon, 24 Jun 2024 14:14:32 +0300 Subject: [PATCH] Update Codecov ghaction --- .github/workflows/workflow.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 3e66b51..01cfc12 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -72,9 +72,21 @@ jobs: name: codecov runs-on: ubuntu-latest steps: - - uses: codecov/codecov-action@v4.5.0 - with: - fail_ci_if_error: true # optional (default = false) - token: ${{ secrets.CODECOV_TOKEN }} # required - verbose: true # optional (default = false) - files: ./coverage1.xml,./coverage2.xml,!./cache \ No newline at end of file + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + - name: Generate coverage report + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + directory: ./coverage/reports/ + fail_ci_if_error: true + files: ./coverage1.xml,./coverage2.xml,!./cache + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true \ No newline at end of file