Thanks for your help; please let me know how I can be clearer etc.
- I generated a pkg using the PkgTemplates “A More Complicated Example”.
- Pushed the repo to GitHub; CI is passing.
- Clicked the code cov unknown badge. This is where I think I’m having issues…
- a) “add repository token as repository secret”. I named the secret CODECOV_TOKEN and add the value, without the “codecov_taken=” component. Is that correct?
- b) “add Codecov to your GitHub Actions workflow yaml file”. It states to insert the below.
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
How do I edit the below yml file such that it picks up the code coverage token?
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info