Skip to content
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

WIP POC: Specify dependencies all in extra-specs #2507

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
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
48 changes: 26 additions & 22 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
optional-packages: ''
- python-version: '3.11'
numpy-version: '1.24'
optional-packages: 'contextily geopandas ipython rioxarray'
optional-packages: |
contextily
geopandas
ipython
rioxarray
timeout-minutes: 30
defaults:
run:
Expand All @@ -93,32 +97,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/setup-miniconda@v2.2.0
- 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