-
Notifications
You must be signed in to change notification settings - Fork 228
CI: Use mamba-org/provision-with-micromamba to setup micromamba #2435
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
f7e9764
CI: Use mamba-org/provision-with-micromamba to setup micromamba
seisman b05467a
Add comma between packages
seisman 67af438
Remove comma between optional packages
seisman c103e11
Specify Python version
seisman 5382970
Use separate environment files
seisman bda67da
sphinx-gallery is required in tests
seisman aa0dfc8
Merge branch 'main' into try-micromamba
seisman 03a4ddb
Cache downloads and env
seisman 504977b
Trigger a new CI run to see how cache works
seisman 2abf4b3
Merge branch 'main' into try-micromamba
seisman 8cf78c7
Refactor the 'GMT Tests Legacy' workflow
seisman 31d85c7
Rename files using underscores
seisman 9b0050a
Refactor the Docs workflow
seisman eb89e80
Refactor the Cache Data workflow
seisman fa7c7d6
Fixes
seisman 464a3ea
Refactor ci_tests_dev.yaml
seisman 8080e77
Temporarily enable GMT Tests Legacy workflow in PR
seisman b20f9b6
Force GMT 6.3.0 in the GMT Tests Legacy workflow
seisman 44cda10
Always run the Tests Dev workflow in PR
seisman 2c3e0e1
Remove comments from extra-specs
seisman 14837f7
Merge branch 'main' into try-micromamba
seisman 8f886ec
Merge branch 'main' into try-micromamba
seisman 07fa2ac
Fix mamba to micromamba
seisman 754fe52
Merge branch 'main' into try-micromamba
seisman ff3af0b
Merge branch 'main' into try-micromamba
seisman 3fe4d1a
Merge branch 'main' into try-micromamba
seisman c640a76
Disable cache in cache-data workflow
seisman d84a4e1
Merge branch 'main' into try-micromamba
seisman 2659a05
Specify Python version in cache_data workflow
seisman e6fbc7d
Remove a comment from ci_docs.yml and ci_tests.yaml
seisman d66fe43
Can not specify the gmt version in the environment file
seisman a979e70
Change channel defaults to nodefaults in docs.yml
seisman 62bcc8f
Update matplotlib link in gallery example "Scatter plots with a legen…
yvonnefroehlich f47dedd
Merge branch 'main' into try-micromamba
seisman 417cab4
Add channel list to cache data
seisman 47f58d5
Remove matplotlib as a dependency
seisman b18d8d8
Update dependency order
seisman c915e39
Merge branch 'main' into try-micromamba
seisman b69d741
Update order of dependencies
seisman cfcdfbe
Temporarily enable cache_data workflow
seisman a8123b2
Update the release checklist for bumping GMT
seisman 923570b
pip is a dev dependency
seisman 6d7047c
Merge branch 'main' into try-micromamba
seisman 0df26af
Merge branch 'main' into try-micromamba
seisman f591d7f
Use Micromamba in the doctests workflow
seisman 1562377
Temporarily enable the workflow in PR
seisman b8490ec
No need to define python-version in matrix
seisman fc1e1bc
Pin GMT version in the workflow file
seisman 36c4a01
No need to define python-version in matrix
seisman 8bf51be
Specify gmt version in workflow files
seisman 9f1e310
No need to define python-version in matrix
seisman cf4636c
Update the GMT bump checklist
seisman 08df3b0
Merge branch 'main' into try-micromamba
seisman ece3db9
Remove tests_legacy.yml and use tests_with_optional_dependencies.yml …
seisman bd4037f
Merge branch 'main' into try-micromamba
seisman 733ef1b
Merge branch 'main' into try-micromamba
seisman 00c1d0a
List all dependencies in the workflow files
seisman 69bb40d
Remove the 'micromamba list' step because provision-with-micromamba a…
seisman 069e070
Do not specify the minimum package version
seisman 69e0336
Sort pytest packages alphabetically
seisman df1c606
Disable some workflows in PR
seisman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,32 +73,32 @@ jobs: | |
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
||
# Install Mambaforge with conda-forge dependencies | ||
- name: Setup Mambaforge | ||
uses: conda-incubator/[email protected] | ||
- name: Setup Micromamba | ||
uses: mamba-org/provision-with-micromamba@v15 | ||
with: | ||
activate-environment: pygmt | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: false | ||
environment-name: pygmt | ||
channels: conda-forge,nodefaults | ||
channel-priority: strict | ||
miniforge-version: latest | ||
miniforge-variant: Mambaforge | ||
mamba-version: "*" | ||
run-post: false | ||
use-mamba: true | ||
|
||
# Install GMT and other required dependencies from conda-forge | ||
- name: Install dependencies | ||
run: | | ||
mamba install gmt=6.4.0 numpy=${{ matrix.numpy-version }} \ | ||
pandas xarray netCDF4 packaging \ | ||
${{ matrix.optional-packages }} \ | ||
build dvc make 'pytest>=6.0' \ | ||
pytest-cov pytest-doctestplus pytest-mpl sphinx-gallery | ||
extra-specs: | | ||
gmt=6.4.0 | ||
numpy=${{ matrix.numpy-version }} | ||
pandas | ||
xarray | ||
netCDF4 | ||
packaging | ||
${{ matrix.optional-packages }} | ||
build | ||
dvc | ||
make | ||
pytest>=6.0 | ||
pytest-cov | ||
pytest-doctestplus | ||
pytest-mpl | ||
sphinx-gallery | ||
|
||
# Show installed pkg information for postmortem diagnostic | ||
- name: List installed packages | ||
run: mamba list | ||
run: micromamba list | ||
|
||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.