Skip to content

Commit e55aa0d

Browse files
committed
List all dependencies in the workflow files
1 parent 733ef1b commit e55aa0d

File tree

8 files changed

+80
-84
lines changed

8 files changed

+80
-84
lines changed

.github/ISSUE_TEMPLATE/bump_gmt_checklist.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ assignees: ''
2121
- [ ] Update `ci/requirements/docs.yml`
2222
- [ ] Update `.github/workflows/cache_data.yaml`
2323
- [ ] Update `.github/workflows/ci_doctests.yaml`
24+
- [ ] Update `.github/workflows/ci_docs.yml`
2425
- [ ] Update `.github/workflows/ci_tests.yaml`
2526
- [ ] Add the legacy GMT version to `.github/workflows/ci_tests_legacy.yaml`
2627
- [ ] Fix failing tests (1 or more PRs)

.github/workflows/ci_docs.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,30 @@ jobs:
6868
- name: Setup Micromamba
6969
uses: mamba-org/provision-with-micromamba@v15
7070
with:
71-
environment-file: "ci/requirements/docs.yml"
71+
environment-name: pygmt
72+
channels: conda-forge,nodefaults
7273
cache-downloads: true
7374
cache-env: true
7475
extra-specs: |
7576
python=3.11
77+
gmt=6.4.0
78+
numpy>=1.21
79+
pandas
80+
xarray
81+
netCDF4
82+
packaging
83+
contextily
84+
geopandas
85+
ipython
86+
rioxarray
87+
build
88+
make
89+
pip
90+
myst-parser
91+
sphinx
92+
sphinx-copybutton
93+
sphinx-design
94+
sphinx-gallery
7695
7796
# Show installed pkg information for postmortem diagnostic
7897
- name: List installed packages

.github/workflows/ci_doctests.yaml

+18-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,27 @@ jobs:
4343
- name: Setup Micromamba
4444
uses: mamba-org/provision-with-micromamba@v15
4545
with:
46-
environment-file: "ci/requirements/doctests.yml"
46+
environment-name: pygmt
47+
channels: conda-forge,nodefaults
4748
extra-specs: |
4849
python=3.11
4950
gmt=6.4.0
51+
numpy>=1.21
52+
pandas
53+
xarray
54+
netCDF4
55+
packaging
56+
contextily
57+
geopandas
58+
ipython
59+
rioxarray
60+
build
61+
make
62+
pip
63+
pytest-doctestplus
64+
pytest-mpl
65+
pytest>=6.0
66+
sphinx-gallery
5067
5168
# Show installed pkg information for postmortem diagnostic
5269
- name: List installed packages

.github/workflows/ci_tests.yaml

+22-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ jobs:
6464
include:
6565
- python-version: '3.9'
6666
numpy-version: '1.21'
67-
environment-file: 'ci/requirements/tests.yml'
6867
- python-version: '3.11'
6968
numpy-version: '1.24'
70-
environment-file: 'ci/requirements/tests_with_optional_dependencies.yml'
69+
optional-packages: |
70+
contextily
71+
geopandas
72+
ipython
73+
rioxarray
7174
7275
timeout-minutes: 30
7376
defaults:
@@ -97,13 +100,28 @@ jobs:
97100
- name: Setup Micromamba
98101
uses: mamba-org/provision-with-micromamba@v15
99102
with:
100-
environment-file: ${{ matrix.environment-file }}
103+
environment-name: pygmt
104+
channels: conda-forge,nodefaults
101105
cache-downloads: true
102106
cache-env: true
103107
extra-specs: |
104108
python=${{ matrix.python-version }}
105-
numpy=${{ matrix.numpy-version }}
106109
gmt=6.4.0
110+
numpy=${{ matrix.numpy-version }}
111+
pandas
112+
xarray
113+
netCDF4
114+
packaging
115+
${{ matrix.optional-packages }}
116+
build
117+
dvc
118+
make
119+
pip
120+
pytest-cov
121+
pytest-doctestplus
122+
pytest-mpl
123+
pytest>=6.0
124+
sphinx-gallery
107125
108126
# Show installed pkg information for postmortem diagnostic
109127
- name: List installed packages

.github/workflows/ci_tests_legacy.yaml

+19-1
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,30 @@ jobs:
5555
- name: Setup Micromamba
5656
uses: mamba-org/provision-with-micromamba@v15
5757
with:
58-
environment-file: "ci/requirements/tests_with_optional_dependencies.yml"
58+
environment-name: pygmt
59+
channels: conda-forge,nodefaults
5960
cache-downloads: true
6061
cache-env: true
6162
extra-specs: |
6263
python=3.9
6364
gmt=${{ matrix.gmt_version }}
65+
numpy>=1.21
66+
pandas
67+
xarray
68+
netCDF4
69+
packaging
70+
contextily
71+
geopandas
72+
ipython
73+
rioxarray
74+
build
75+
dvc
76+
make
77+
pip
78+
pytest-doctestplus
79+
pytest-mpl
80+
pytest>=6.0
81+
sphinx-gallery
6482
6583
# Show installed pkg information for postmortem diagnostic
6684
- name: List installed packages

ci/requirements/doctests.yml

-26
This file was deleted.

ci/requirements/tests.yml

-23
This file was deleted.

ci/requirements/tests_with_optional_dependencies.yml

-28
This file was deleted.

0 commit comments

Comments
 (0)