Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -40,5 +37,3 @@ jobs:
with:
name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
files: cov.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions docs/how-to/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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_name>/org-upload-token` to generate a token for your org, and store it as a secret named `CODECOV_TOKEN` in `https://github.com/organizations/<org_name>/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/<org_name>/<repo_name>`, and the badge on the repository updated.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down