From 2f82fe4e3db6b47e67b79cf357883fd5ba74b985 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Sat, 18 Sep 2021 22:15:09 +1200 Subject: [PATCH] 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 https://github.com/codecov/codecov-python/pull/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 --- .github/workflows/ci_tests.yaml | 2 +- README.rst | 4 ++-- doc/maintenance.md | 5 +++++ environment.yml | 1 - 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 0b193106fa2..65988b81b85 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -92,7 +92,7 @@ jobs: conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \ pandas xarray netCDF4 packaging \ ${{ matrix.optional-packages }} \ - codecov coverage[toml] dvc ipython make \ + coverage[toml] dvc ipython make \ pytest-cov pytest-mpl pytest>=6.0 \ sphinx-gallery diff --git a/README.rst b/README.rst index 5ed16ecdc0a..96fb0cdfac8 100644 --- a/README.rst +++ b/README.rst @@ -16,9 +16,9 @@ PyGMT .. image:: https://github.com/GenericMappingTools/pygmt/workflows/GMT%20Dev%20Tests/badge.svg :alt: GitHub Actions GMT Dev Tests status :target: https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml -.. image:: https://img.shields.io/codecov/c/github/GenericMappingTools/pygmt/main.svg?style=flat-square +.. image:: https://codecov.io/gh/GenericMappingTools/pygmt/branch/main/graph/badge.svg?token=78Fu4EWstx :alt: Test coverage status - :target: https://codecov.io/gh/GenericMappingTools/pygmt + :target: https://app.codecov.io/gh/GenericMappingTools/pygmt .. image:: https://img.shields.io/pypi/pyversions/pygmt.svg?style=flat-square :alt: Compatible Python versions. :target: https://pypi.python.org/pypi/pygmt diff --git a/doc/maintenance.md b/doc/maintenance.md index 7a3784b6a91..9111ca676c6 100644 --- a/doc/maintenance.md +++ b/doc/maintenance.md @@ -87,6 +87,11 @@ There are 11 configuration files located in `.github/workflows`: Python/NumPy versions - Latest Python/NumPy versions + optional packages (e.g. GeoPandas) + This workflow is also responsible for uploading test coverage reports stored + in `.coverage.xml` to https://app.codecov.io/gh/GenericMappingTools/pygmt + via the [Codecov GitHub Action](https://github.com/codecov/codecov-action). + More codecov related configurations are stored in `.github/codecov.yml`. + 3. `ci_docs.yml` (Build documentation on Linux/macOS/Windows) This is run on every commit to the *main* and Pull Request branches. diff --git a/environment.yml b/environment.yml index d2912e2bd9f..b0f3ef3878e 100644 --- a/environment.yml +++ b/environment.yml @@ -16,7 +16,6 @@ dependencies: # Development dependencies - black - blackdoc - - codecov - coverage[toml] - docformatter - dvc