diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c4859a9..ed86251 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,7 +10,14 @@ on: branches: - main # Or if it is push to main pull_request: # Or if it is any pull_request + secrets: + codecov_token: + required: true workflow_call: # Or if the call comes from another workflow (reusability) + secrets: + codecov_token: + required: true + workflow_dispatch: permissions: contents: read @@ -48,16 +55,15 @@ jobs: pytest --cov=./src tests/ --cov-report term --cov-report=xml:coverage.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4.0.1 with: verbose: true directory: ./coverage/reports/ - env_vars: OS,PYTHON - fail_ci_if_error: true + fail_ci_if_error: false files: ./coverage.xml flags: unittests name: codecov-umbrella - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.codecov_token }} - name: Check if the package builds run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55760a7..721d9e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,8 @@ jobs: check: needs: verify uses: ./.github/workflows/CI.yml + secrets: + codecov_token: ${{secrets.CODECOV_TOKEN}} publish: needs: check @@ -41,7 +43,7 @@ jobs: packages: write steps: - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' @@ -86,7 +88,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 - name: Create Release - uses: ncipollo/release-action@v1.13.0 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: true draft: false diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 0237417..21544da 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -8,6 +8,8 @@ on: jobs: check: uses: ./.github/workflows/CI.yml + secrets: + codecov_token: ${{secrets.CODECOV_TOKEN}} build: needs: check