From f08ff52f1607994dfb5f72a4c11ff61dcdd97b21 Mon Sep 17 00:00:00 2001 From: "Tiffany A. Timbers" Date: Mon, 6 Jan 2025 11:08:01 -0800 Subject: [PATCH 1/3] bump to codecov-action@v5 --- {{ cookiecutter.__package_slug }}/.github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.__package_slug }}/.github/workflows/ci.yml b/{{ cookiecutter.__package_slug }}/.github/workflows/ci.yml index c3fd291..f04754f 100644 --- a/{{ cookiecutter.__package_slug }}/.github/workflows/ci.yml +++ b/{{ cookiecutter.__package_slug }}/.github/workflows/ci.yml @@ -27,9 +27,9 @@ jobs: run: poetry run pytest tests/ --cov={{ cookiecutter.__package_slug }} --cov-report=xml - name: Use Codecov to track coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: - files: ./coverage.xml # coverage report + token: ${{ secrets.CODECOV_TOKEN }} - name: Build documentation run: poetry run make html --directory docs/ From 85d9c96a3169ccb357bf39c5ca885209dde1b5bb Mon Sep 17 00:00:00 2001 From: "Tiffany A. Timbers" Date: Mon, 6 Jan 2025 11:08:42 -0800 Subject: [PATCH 2/3] bump to codecov-action@v5 --- {{ cookiecutter.__package_slug }}/.github/workflows/ci-cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{ cookiecutter.__package_slug }}/.github/workflows/ci-cd.yml b/{{ cookiecutter.__package_slug }}/.github/workflows/ci-cd.yml index 215807a..4f1ab63 100644 --- a/{{ cookiecutter.__package_slug }}/.github/workflows/ci-cd.yml +++ b/{{ cookiecutter.__package_slug }}/.github/workflows/ci-cd.yml @@ -27,9 +27,9 @@ jobs: run: poetry run pytest tests/ --cov={{ cookiecutter.__package_slug }} --cov-report=xml - name: Use Codecov to track coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: - files: ./coverage.xml # coverage report + token: ${{ secrets.CODECOV_TOKEN }} - name: Build documentation run: poetry run make html --directory docs/ From 1b6b768d1249687a8163323a599dd245d08b0607 Mon Sep 17 00:00:00 2001 From: "Tiffany A. Timbers" Date: Mon, 6 Jan 2025 11:16:06 -0800 Subject: [PATCH 3/3] added codecov token to userguide --- docs/source/user-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/user-guide.md b/docs/source/user-guide.md index 349f8fd..f45855c 100755 --- a/docs/source/user-guide.md +++ b/docs/source/user-guide.md @@ -130,7 +130,7 @@ A GitHub Actions workflow file for continuous integration will be included in yo - Sets up a Ubuntu operating system, checks out your repository, installs Python 3.9, and installs the latest version of `poetry`. - Installs your package with `poetry install` - Runs test with `pytest tests/` -- Upload code coverage of tests to Codecov +- Upload code coverage of tests to Codecov. For this to work, you'll need to log-in to [Codecov]([https://test.pypi.org](https://about.codecov.io/), manually add and activate your project's GitHub repository on Codecov, [get the repository upload token](https://docs.codecov.com/docs/quick-start#step-2-get-the-repository-upload-token), and [add the token as a secret](https://docs.github.com/en/actions/reference/encrypted-secrets) called `CODECOV_TOKEN` to your GitHub repository. - Builds documentation with `sphinx` ### CI+CD (continuous integration + continuous deployment)