Skip to content

Commit 13f69b1

Browse files
authored
Remove deprecated codecov dependency from CI (#1494)
The codecov python package is deprecated in favour of a bash script, so it should be removed from PyGMT's CI dependency lists. For more info, see codecov/codecov-python#325 and https://about.codecov.io/blog/codecov-uploader-deprecation-plan. * Refresh codecov badge to be the official one * Drop deprecated codecov dependency from conda install * Add note to maintenance.md on how code coverage reports are handled
1 parent 7a7e861 commit 13f69b1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
9393
pandas xarray netCDF4 packaging \
9494
${{ matrix.optional-packages }} \
95-
codecov coverage[toml] dvc ipython make \
95+
coverage[toml] dvc ipython make \
9696
pytest-cov pytest-mpl pytest>=6.0 \
9797
sphinx-gallery
9898

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ PyGMT
1616
.. image:: https://github.com/GenericMappingTools/pygmt/workflows/GMT%20Dev%20Tests/badge.svg
1717
:alt: GitHub Actions GMT Dev Tests status
1818
:target: https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml
19-
.. image:: https://img.shields.io/codecov/c/github/GenericMappingTools/pygmt/main.svg?style=flat-square
19+
.. image:: https://codecov.io/gh/GenericMappingTools/pygmt/branch/main/graph/badge.svg?token=78Fu4EWstx
2020
:alt: Test coverage status
21-
:target: https://codecov.io/gh/GenericMappingTools/pygmt
21+
:target: https://app.codecov.io/gh/GenericMappingTools/pygmt
2222
.. image:: https://img.shields.io/pypi/pyversions/pygmt.svg?style=flat-square
2323
:alt: Compatible Python versions.
2424
:target: https://pypi.python.org/pypi/pygmt

doc/maintenance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ There are 11 configuration files located in `.github/workflows`:
8787
Python/NumPy versions
8888
- Latest Python/NumPy versions + optional packages (e.g. GeoPandas)
8989

90+
This workflow is also responsible for uploading test coverage reports stored
91+
in `.coverage.xml` to https://app.codecov.io/gh/GenericMappingTools/pygmt
92+
via the [Codecov GitHub Action](https://github.com/codecov/codecov-action).
93+
More codecov related configurations are stored in `.github/codecov.yml`.
94+
9095
3. `ci_docs.yml` (Build documentation on Linux/macOS/Windows)
9196

9297
This is run on every commit to the *main* and Pull Request branches.

environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies:
1616
# Development dependencies
1717
- black
1818
- blackdoc
19-
- codecov
2019
- coverage[toml]
2120
- docformatter
2221
- dvc

0 commit comments

Comments
 (0)