-
Notifications
You must be signed in to change notification settings - Fork 235
Use mamba to install Continuous Integration dependencies #841
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 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
79cd804
Use mamba to install Continuous Integration dependencies
weiji14 5612a68
Move dev dependency specification to environment.yml
weiji14 2dd0890
Merge branch 'master' into mambaforge
weiji14 4b93f4d
Temporarily enable Windows Python 3.9 CI tests in draft mode
weiji14 bf1e97d
Use the cache action
seisman 70f5921
Revert "Use the cache action"
seisman 1595cb1
Merge branch 'main' into mambaforge
weiji14 7543a26
Set strict channel priority to conda-forge only with no
weiji14 e2dbf0c
Use mamba on GMT Dev Tests CI build
weiji14 b962733
Use mamba in CI docs and Cache Data workflows
weiji14 deeafad
Pin gmt dev version to 6.3 on Windows CI
weiji14 56e9433
Merge branch 'main' into mambaforge
weiji14 504fadc
Revert "Temporarily enable Windows Python 3.9 CI tests in draft mode"
weiji14 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 |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ jobs: | |
| - os: macOS-latest | ||
| isDraft: true | ||
| - os: windows-latest | ||
| python-version: 3.7 | ||
| isDraft: true | ||
| # - os: ubuntu-latest | ||
| # python-version: 3.7 | ||
|
|
@@ -77,19 +78,23 @@ jobs: | |
| # fecth all history so that setuptools-scm works | ||
| fetch-depth: 0 | ||
|
|
||
| # Setup Miniconda | ||
| - name: Setup Miniconda | ||
| # Install Mambaforge with conda-forge dependencies | ||
| - name: Setup Mambaforge | ||
| uses: conda-incubator/[email protected] | ||
| with: | ||
| activate-environment: pygmt | ||
| python-version: ${{ matrix.python-version }} | ||
| channels: conda-forge | ||
| miniconda-version: "latest" | ||
| channels: conda-forge,nodefaults | ||
| channel-priority: strict | ||
| miniforge-version: latest | ||
| miniforge-variant: Mambaforge | ||
| mamba-version: "*" | ||
| use-mamba: true | ||
|
|
||
| # Install GMT and other required dependencies from conda-forge | ||
| - name: Install dependencies | ||
| run: | | ||
| conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \ | ||
| mamba install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \ | ||
| pandas xarray netCDF4 packaging \ | ||
| ${{ matrix.optional-packages }} \ | ||
| codecov coverage[toml] dvc ipython make \ | ||
|
|
@@ -98,7 +103,7 @@ jobs: | |
|
|
||
| # Show installed pkg information for postmortem diagnostic | ||
| - name: List installed packages | ||
| run: conda list | ||
| run: mamba list | ||
|
|
||
| # Download cached remote files (artifacts) from GitHub | ||
| - name: Download remote data from GitHub | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -71,19 +71,23 @@ jobs: | |
| # fecth all history so that setuptools-scm works | ||
| fetch-depth: 0 | ||
|
|
||
| # Setup Miniconda | ||
| - name: Setup Miniconda | ||
| # Install Mambaforge with conda-forge dependencies | ||
| - name: Setup Mambaforge | ||
| uses: conda-incubator/[email protected] | ||
| with: | ||
| activate-environment: pygmt | ||
| python-version: ${{ matrix.python-version }} | ||
| channels: conda-forge | ||
| miniconda-version: "latest" | ||
| channels: conda-forge,nodefaults | ||
| channel-priority: strict | ||
| miniforge-version: latest | ||
| miniforge-variant: Mambaforge | ||
| mamba-version: "*" | ||
| use-mamba: true | ||
|
|
||
| # Install dependencies from conda-forge | ||
| - name: Install dependencies | ||
| run: | | ||
| conda install ninja cmake libblas libcblas liblapack fftw gdal geopandas \ | ||
| mamba install ninja cmake libblas libcblas liblapack fftw gdal geopandas \ | ||
| ghostscript libnetcdf hdf5 zlib curl pcre make dvc | ||
| pip install --pre numpy pandas xarray netCDF4 packaging \ | ||
| ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery \ | ||
|
|
@@ -98,7 +102,7 @@ jobs: | |
| if: runner.os != 'Windows' | ||
|
|
||
| - name: Install GMT dev version from conda-forge (Windows) | ||
| run: conda install -c conda-forge/label/dev gmt | ||
| run: mamba install -c conda-forge/label/dev gmt>=6.2 | ||
weiji14 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| if: runner.os == 'Windows' | ||
|
|
||
| # Download cached remote files (artifacts) 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.