diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9e519bb..1f90761 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -72,8 +72,23 @@ 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) + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + - name: Generate coverage report + run: | + python -m pip install --upgrade pip + python -m pip install pytest + python -m pip install pytest-cov + python -m pip install .[dev] + python -m pytest --cov=./ --cov-report=xml:pytest_cov.xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + directory: ./coverage/reports/ + fail_ci_if_error: true + files: ./coverage.xml,./pytest_cov.xml,!./cache + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true \ No newline at end of file