-
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
CI tests fails due to pytest-cov requiring toml instead of tomli #1392
Labels
maintenance
Boring but important stuff for the core devs
Milestone
Comments
5 tasks
weiji14
added a commit
that referenced
this issue
Aug 5, 2021
Adding tomli to fix the GMT Dev Tests breakages reported in #1392. This is a temporary measure until `pytest-cov` releases a new version > 2.12.1.
Reopening because
|
weiji14
added a commit
that referenced
this issue
Oct 3, 2021
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.
5 tasks
weiji14
changed the title
GMT dev test fails due to pytest-cov requiring toml instead of tomli
CI tests fails due to pytest-cov requiring toml instead of tomli
Oct 3, 2021
weiji14
added a commit
that referenced
this issue
Oct 3, 2021
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. * Remove coverage dependency since it is required by pytest-cov already
6 tasks
sixy6e
pushed a commit
to sixy6e/pygmt
that referenced
this issue
Dec 21, 2022
Adding tomli to fix the GMT Dev Tests breakages reported in GenericMappingTools#1392. This is a temporary measure until `pytest-cov` releases a new version > 2.12.1.
sixy6e
pushed a commit
to sixy6e/pygmt
that referenced
this issue
Dec 21, 2022
) 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
A large chunk of the Python ecosystem is switching from
toml
totomli
, and this has been causing some breakages lately (mostly temporary as people deal with dependency hell). See nedbat/coveragepy#1180 for a comprehensive list.Anyways, the GMT Dev Test started failing on 19 Jul 2021 (https://github.com/GenericMappingTools/pygmt/runs/3099541749?check_suite_focus=true#step:15:95), and I've tracked it down to be due to
coverage
releasing v6.0b1 on the same day (https://pypi.org/project/coverage/6.0b1/).coverage
switched to usingtomli
in nedbat/coveragepy#1186, but pytest-cov 2.12.1 (released 2 Jun 2021) still seems to usetoml
, hence the breakage (I think).Error message
Easiest solution would be to add the
toml
package to this line:pygmt/.github/workflows/ci_tests_dev.yaml
Lines 88 to 89 in c341628
However, this could also just resolve itself in the next few days, depending on when
pytest-cov
creates a tagged release. So we could just wait and see if things get fixed automatically 🙂The text was updated successfully, but these errors were encountered: