-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tomli as a dependency in GitHub Actions CI #1564
Conversation
Adding tomli to fix the GitHub Actions CI test breakages reported in #1392. This is a temporary measure until `pytest-cov>2.12.1` is released.
The optional `[toml]` part is `pip` syntax, and not needed for `conda` or `mamba` install.
.github/workflows/ci_tests.yaml
Outdated
@@ -96,8 +96,8 @@ jobs: | |||
mamba install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \ | |||
pandas xarray netCDF4 packaging \ | |||
${{ matrix.optional-packages }} \ | |||
coverage[toml] dvc=2.3.0 make pytest>=6.0 \ | |||
pytest-cov pytest-mpl sphinx-gallery | |||
coverage dvc=2.3.0 make pytest>=6.0 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why we have coverage
here, but not in "ci_tests_dev.yaml"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, git blame
shows that coverage[toml]
was added by you in #1033, so I'll need to ask you that! We could probably removecoverage
though, since pytest-cov
depends on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 Let's remove it and see everything works well.
) Adding tomli to fix the GitHub Actions CI test breakages reported in GenericMappingTools#1392. This is a temporary measure until `pytest-cov>2.12.1` is released. * Remove coverage dependency since it is required by pytest-cov already
Description of proposed changes
Adding tomli to fix the GitHub Actions CI test breakages reported in #1392. This is a temporary measure until
pytest-cov>2.12.1
is released. This is similar to #1401, but applied to theci_tests.yaml
instead of theci_tests_dev.yaml
file.Also remove
coverage
from theenvironment.yml
file since it is required bypytest-cov
already.Fixes #1392
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version