Skip to content

Commit

Permalink
List all dependencies in the workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Apr 21, 2023
1 parent 733ef1b commit a1f9ad8
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 84 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bump_gmt_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ assignees: ''
- [ ] Update `ci/requirements/docs.yml`
- [ ] Update `.github/workflows/cache_data.yaml`
- [ ] Update `.github/workflows/ci_doctests.yaml`
- [ ] Update `.github/workflows/ci_docs.yml`
- [ ] Update `.github/workflows/ci_tests.yaml`
- [ ] Add the legacy GMT version to `.github/workflows/ci_tests_legacy.yaml`
- [ ] Fix failing tests (1 or more PRs)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cache_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
uses: mamba-org/provision-with-micromamba@v15
with:
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
extra-specs: |
python=3.11
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,31 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: "ci/requirements/docs.yml"
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
cache-downloads: true
cache-env: true
extra-specs: |
python=3.11
gmt=6.4.0
numpy>=1.21
pandas
xarray
netCDF4
packaging
contextily
geopandas
ipython
rioxarray
build
make
pip
myst-parser
sphinx
sphinx-copybutton
sphinx-design
sphinx-gallery
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/ci_doctests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,28 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: "ci/requirements/doctests.yml"
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
extra-specs: |
python=3.11
gmt=6.4.0
numpy>=1.21
pandas
xarray
netCDF4
packaging
contextily
geopandas
ipython
rioxarray
build
make
pip
pytest-doctestplus
pytest-mpl
pytest>=6.0
sphinx-gallery
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ jobs:
include:
- python-version: '3.9'
numpy-version: '1.21'
environment-file: 'ci/requirements/tests.yml'
optional-packages: ''
- python-version: '3.11'
numpy-version: '1.24'
environment-file: 'ci/requirements/tests_with_optional_dependencies.yml'
optional-packages: |
contextily
geopandas
ipython
rioxarray
timeout-minutes: 30
defaults:
Expand Down Expand Up @@ -97,13 +101,29 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: ${{ matrix.environment-file }}
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
cache-downloads: true
cache-env: true
extra-specs: |
python=${{ matrix.python-version }}
numpy=${{ matrix.numpy-version }}
gmt=6.4.0
numpy=${{ matrix.numpy-version }}
pandas
xarray
netCDF4
packaging
${{ matrix.optional-packages }}
build
dvc
make
pip
pytest-cov
pytest-doctestplus
pytest-mpl
pytest>=6.0
sphinx-gallery
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
uses: mamba-org/provision-with-micromamba@v15
with:
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
cache-downloads: true
cache-env: true
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/ci_tests_legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,31 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
environment-file: "ci/requirements/tests_with_optional_dependencies.yml"
environment-name: pygmt
environment-file: false
channels: conda-forge,nodefaults
cache-downloads: true
cache-env: true
extra-specs: |
python=3.9
gmt=${{ matrix.gmt_version }}
numpy>=1.21
pandas
xarray
netCDF4
packaging
contextily
geopandas
ipython
rioxarray
build
dvc
make
pip
pytest-doctestplus
pytest-mpl
pytest>=6.0
sphinx-gallery
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
Expand Down
26 changes: 0 additions & 26 deletions ci/requirements/doctests.yml

This file was deleted.

23 changes: 0 additions & 23 deletions ci/requirements/tests.yml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/requirements/tests_with_optional_dependencies.yml

This file was deleted.

0 comments on commit a1f9ad8

Please sign in to comment.