Skip to content

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 61 commits into from
Apr 23, 2023
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 Mar 17, 2023
b05467a
Add comma between packages
seisman Mar 17, 2023
67af438
Remove comma between optional packages
seisman Mar 17, 2023
c103e11
Specify Python version
seisman Mar 17, 2023
5382970
Use separate environment files
seisman Mar 17, 2023
bda67da
sphinx-gallery is required in tests
seisman Mar 17, 2023
aa0dfc8
Merge branch 'main' into try-micromamba
seisman Mar 19, 2023
03a4ddb
Cache downloads and env
seisman Mar 19, 2023
504977b
Trigger a new CI run to see how cache works
seisman Mar 19, 2023
2abf4b3
Merge branch 'main' into try-micromamba
seisman Mar 24, 2023
8cf78c7
Refactor the 'GMT Tests Legacy' workflow
seisman Mar 24, 2023
31d85c7
Rename files using underscores
seisman Mar 24, 2023
9b0050a
Refactor the Docs workflow
seisman Mar 24, 2023
eb89e80
Refactor the Cache Data workflow
seisman Mar 24, 2023
fa7c7d6
Fixes
seisman Mar 24, 2023
464a3ea
Refactor ci_tests_dev.yaml
seisman Mar 24, 2023
8080e77
Temporarily enable GMT Tests Legacy workflow in PR
seisman Mar 24, 2023
b20f9b6
Force GMT 6.3.0 in the GMT Tests Legacy workflow
seisman Mar 24, 2023
44cda10
Always run the Tests Dev workflow in PR
seisman Mar 25, 2023
2c3e0e1
Remove comments from extra-specs
seisman Mar 25, 2023
14837f7
Merge branch 'main' into try-micromamba
seisman Mar 25, 2023
8f886ec
Merge branch 'main' into try-micromamba
seisman Mar 25, 2023
07fa2ac
Fix mamba to micromamba
seisman Mar 26, 2023
754fe52
Merge branch 'main' into try-micromamba
seisman Mar 27, 2023
ff3af0b
Merge branch 'main' into try-micromamba
seisman Mar 27, 2023
3fe4d1a
Merge branch 'main' into try-micromamba
seisman Mar 29, 2023
c640a76
Disable cache in cache-data workflow
seisman Mar 29, 2023
d84a4e1
Merge branch 'main' into try-micromamba
seisman Apr 6, 2023
2659a05
Specify Python version in cache_data workflow
seisman Apr 7, 2023
e6fbc7d
Remove a comment from ci_docs.yml and ci_tests.yaml
seisman Apr 7, 2023
d66fe43
Can not specify the gmt version in the environment file
seisman Apr 7, 2023
a979e70
Change channel defaults to nodefaults in docs.yml
seisman Apr 7, 2023
62bcc8f
Update matplotlib link in gallery example "Scatter plots with a legen…
yvonnefroehlich Apr 8, 2023
f47dedd
Merge branch 'main' into try-micromamba
seisman Apr 9, 2023
417cab4
Add channel list to cache data
seisman Apr 9, 2023
47f58d5
Remove matplotlib as a dependency
seisman Apr 9, 2023
b18d8d8
Update dependency order
seisman Apr 9, 2023
c915e39
Merge branch 'main' into try-micromamba
seisman Apr 9, 2023
b69d741
Update order of dependencies
seisman Apr 9, 2023
cfcdfbe
Temporarily enable cache_data workflow
seisman Apr 9, 2023
a8123b2
Update the release checklist for bumping GMT
seisman Apr 9, 2023
923570b
pip is a dev dependency
seisman Apr 11, 2023
6d7047c
Merge branch 'main' into try-micromamba
seisman Apr 12, 2023
0df26af
Merge branch 'main' into try-micromamba
seisman Apr 12, 2023
f591d7f
Use Micromamba in the doctests workflow
seisman Apr 12, 2023
1562377
Temporarily enable the workflow in PR
seisman Apr 12, 2023
b8490ec
No need to define python-version in matrix
seisman Apr 12, 2023
fc1e1bc
Pin GMT version in the workflow file
seisman Apr 12, 2023
36c4a01
No need to define python-version in matrix
seisman Apr 12, 2023
8bf51be
Specify gmt version in workflow files
seisman Apr 12, 2023
9f1e310
No need to define python-version in matrix
seisman Apr 12, 2023
cf4636c
Update the GMT bump checklist
seisman Apr 12, 2023
08df3b0
Merge branch 'main' into try-micromamba
seisman Apr 13, 2023
ece3db9
Remove tests_legacy.yml and use tests_with_optional_dependencies.yml …
seisman Apr 21, 2023
bd4037f
Merge branch 'main' into try-micromamba
seisman Apr 21, 2023
733ef1b
Merge branch 'main' into try-micromamba
seisman Apr 21, 2023
00c1d0a
List all dependencies in the workflow files
seisman Apr 21, 2023
69bb40d
Remove the 'micromamba list' step because provision-with-micromamba a…
seisman Apr 21, 2023
069e070
Do not specify the minimum package version
seisman Apr 21, 2023
69e0336
Sort pytest packages alphabetically
seisman Apr 23, 2023
df1c606
Disable some workflows in PR
seisman Apr 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down