diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44adf2b0f..b6fdb68d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,9 +43,10 @@ jobs: coverage run -m pytest -v -s --html=${{ matrix.os }}_${{ matrix.python-version }}_unit_test_report.html --self-contained-html tests coverage xml - name: Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v4.5.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - token: ${{ secrets.CODECOV_TOKEN }} flags: unit-tests - name: Upload test results if: ${{ always() }} # Always run this step, even if tests fail @@ -73,9 +74,10 @@ jobs: coverage run -m pytest -v -s --nbval-lax -k "not documentation" --html="${{ matrix.os }}_integration_test_report.html" --self-contained-html docs/examples coverage xml - name: Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v4.5.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - token: ${{ secrets.CODECOV_TOKEN }} flags: integration-tests - name: Upload test results if: ${{ always() }} # Always run this step, even if tests fail @@ -109,10 +111,11 @@ jobs: run: | mypy --install-types --non-interactive parcels --cobertura-xml-report mypy_report - name: Upload mypy coverage to Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v4.5.0 if: ${{ always() }} # Upload even on error of mypy + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - token: ${{ secrets.CODECOV_TOKEN }} file: mypy_report/cobertura.xml flags: mypy fail_ci_if_error: false