diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index 15c244ca..46cd49df 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -9,9 +9,6 @@ on: type: string description: The runner to run this job on required: true - secrets: - CODECOV_TOKEN: - required: true env: # https://github.com/pytest-dev/pytest/issues/2042 @@ -40,5 +37,3 @@ jobs: with: name: ${{ inputs.python-version }}/${{ inputs.runs-on }} files: cov.xml - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3fc9c50..2ccb5691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: uses: ./.github/workflows/_test.yml with: runs-on: ubuntu-latest - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} docs: uses: ./.github/workflows/_docs.yml diff --git a/docs/how-to/coverage.md b/docs/how-to/coverage.md index af43cf91..5df72641 100644 --- a/docs/how-to/coverage.md +++ b/docs/how-to/coverage.md @@ -6,7 +6,7 @@ Code coverage is reported to the command line and to a `cov.xml` file by the com (installing-codecov-github-app)= ## Installing Codecov GitHub app -If your repo is hosted in the DiamondLightSource org, then the codecov GitHub app is already installed and a global token stored so you don't need to do anything. +If your repo is hosted in the DiamondLightSource org, then the codecov GitHub app is already installed so you don't need to do anything. If your repo is in an org where the codecov GitHub app is not installed, then follow these steps to install it on the org: @@ -17,6 +17,4 @@ If your repo is in an org where the codecov GitHub app is not installed, then fo ![Install Codecov](../images/gh-install-codecov.png) -Now you need to visit `https://app.codecov.io/account/gh//org-upload-token` to generate a token for your org, and store it as a secret named `CODECOV_TOKEN` in `https://github.com/organizations//settings/secrets/actions` - -Next time you create a pull request or merge to main, the code coverage will be uploaded, and the badge on the repository updated. +Next time you create a pull request or merge to main, the code coverage will be uploaded to `https://app.codecov.io/github//`, and the badge on the repository updated. diff --git "a/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" "b/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" index 5715df18..47c95c59 100644 --- "a/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" +++ "b/template/{% if git_platform==\"github.com\" %}.github{% endif %}/workflows/ci.yml.jinja" @@ -25,8 +25,6 @@ jobs: with: runs-on: ${{ matrix.runs-on }} python-version: ${{ matrix.python-version }} - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} {% endraw %}{% if docker %}{% raw %} container: needs: test