Skip to content

Add tomli as a dependency in GitHub Actions CI - #1564

Merged
weiji14 merged 3 commits into
mainfrom
ci-fix/tomli
Oct 3, 2021
Merged

weiji14 merged 3 commits into
mainfrom
ci-fix/tomli

Conversation

@weiji14

@weiji14 weiji14 commented Oct 3, 2021 •

Copy link
Copy Markdown
Member

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 the ci_tests.yaml instead of the ci_tests_dev.yaml file.

Also remove coverage from the environment.yml file since it is required by pytest-cov already.

Fixes #1392

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

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.
@weiji14 weiji14 added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Oct 3, 2021
@weiji14 weiji14 self-assigned this Oct 3, 2021
The optional `[toml]` part is `pip` syntax, and not
needed for `conda` or `mamba` install.
@weiji14
weiji14 marked this pull request as ready for review October 3, 2021 10:10
Comment thread .github/workflows/ci_tests.yaml Outdated
${{ 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 \

Copy link
Copy Markdown
Member

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"?

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

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.

@seisman seisman added this to the 0.5.0 milestone Oct 3, 2021
@weiji14
weiji14 merged commit b0335cd into main Oct 3, 2021
@weiji14
weiji14 deleted the ci-fix/tomli branch October 3, 2021 10:47
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request 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

This branch was previously deployed

1 inactive deployment
Preview — b276b437 Deployed Oct 3, 2021 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI tests fails due to pytest-cov requiring toml instead of tomli

2 participants