-
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
Update "GMT Dev Tests" workflow to test macOS-11.0 and pre-release Python packages #1105
Conversation
- Add more paths to `paths-ignore` - Change "ubuntu-20.04" to "ubuntu-latest", "macOs-10.15" to "macOS-latest" - Add "activate-environment: pygmt" to the setup-miniconda step - Install PyGMT dependencies from conda-forge, not pip
NOTE: after merging this PR, we also need to specify the numpy version in the "GMT Dev Tests" workflow in #1074. |
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.
NOTE: after merging this PR, we also need to specify the numpy version in the "GMT Dev Tests" workflow in #1074.
Do we actually need to specify the NumPy version? I think it's fine to just grab the latest as is being done currently.
On a related note, maybe it's a good idea to check pre-release versions of NumPy in this dev workflow (i.e. use pip install --pre numpy
) so that we can test NumPy release candidates (when they are available every 6 months or so, see https://pypi.org/project/numpy/#history).
Co-authored-by: Wei Ji <[email protected]>
/test-gmt-dev https://github.com/GenericMappingTools/pygmt/actions/runs/678197698 Edit: If I understand it correctly, slash command |
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.
macOS-11.0 works well: https://github.com/GenericMappingTools/pygmt/pull/1105/checks?check_run_id=2171816161
Excellent! Not that I use macOS, but I'm sure it'll be good news for many people.
I think we can remove the skip-changelog
tag and change the title of this PR to "Update ci_tests_dev.yaml to test macOS-11.0 and pre-release Python packages", or something along those lines.
Co-authored-by: Wei Ji <[email protected]>
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.
Looks good to me, but someone can have another look too.
FYI,
so we have to install dvc using conda, not pip. |
For anyone who want to review this PR, the latest runs of the "GMT Tests workflow" are available at: https://github.com/GenericMappingTools/pygmt/actions/runs/678466597 The tests fail because the baseline images are not updated for GMT 6.2.0. All other steps work, and all Python packages are installed using |
…thon packages (GenericMappingTools#1105) - Install pre-release Python packages using pip install --pre, so that the workflow also tests dev Python packages - Change "macOS-10.15" to "macOS-11.0" - Change "ubuntu-20.04" to "ubuntu-latest" (ubuntu-latest is just an alias of ubuntu-20.04) - Add "activate-environment: pygmt" to the setup-miniconda step - Add more paths to paths-ignore Co-authored-by: Wei Ji <[email protected]>
Description of proposed changes
pip install --pre
, so that the workflow also tests dev Python packagespaths-ignore
Fixes #
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