diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 895ea14da..911504714 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,5 +1,9 @@ name: Python workflows on: + workflow_call: + secrets: + codecov_token: + required: true push: branches: - "main" @@ -63,11 +67,10 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@v4.5.0 if: always() && matrix.session == 'tests' - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: coverage.xml fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload documentation if: matrix.session == 'docs-build' uses: actions/upload-artifact@v4