diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 94e56b0..af0262f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -35,7 +35,7 @@ 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: Code testing and coverage + - name: Generate coverage report run: | pip install numpy==1.26 python -c "import numpy; print(numpy.__version__)" @@ -43,5 +43,14 @@ jobs: pip install pytest-cov pytest --cov=./ --cov-report=xml tests/ - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 + with: + directory: ./coverage/reports/ + env_vars: OS,PYTHON + fail_ci_if_error: true + files: ./coverage1.xml,./coverage2.xml,!./cache + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true