Skip to content

Commit a1f1bee

Browse files
committed
ci(test.yaml):
* reference installation/environment.yml so that python version is only listed in one place * explicitly test with pandas 3 using another env file (Flopy requirements are apparently still resulting in pandas <3)
1 parent 3777b48 commit a1f1bee

2 files changed

Lines changed: 58 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111

1212
jobs:
1313
build:
14-
name: ${{ matrix.python-version }}, ${{ matrix.os }}
14+
name: ${{ matrix.env }}, ${{ matrix.os }}
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
fail-fast: false
1818
matrix:
1919
os: [ ubuntu-latest, macos-latest, windows-latest ]
20-
python-version: ['3.14']
20+
env:
21+
- installation/environment.yml
22+
- ci/pandas3_env.yml
2123

2224
steps:
2325
- name: Checkout source
@@ -31,7 +33,7 @@ jobs:
3133
- name: Setup Micromamba
3234
uses: mamba-org/setup-micromamba@main
3335
with:
34-
environment-file: installation/environment.yml
36+
environment-file: ${{ matrix.env }}
3537
cache-environment: false
3638
cache-downloads: false
3739
# persist on the same day.
@@ -76,6 +78,6 @@ jobs:
7678
- name: Run tests
7779
shell: bash -l {0}
7880
run: |
79-
pytest tests/test_notebooks.py -k "test_notebook[notebook38]"
81+
pytest tests/test_notebooks.py
8082
env:
8183
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci/pandas3_env.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: pyclass
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
# required
7+
- python=3.14
8+
- pip
9+
10+
- numpy
11+
- matplotlib
12+
13+
- jupyter
14+
- jupytext
15+
- jupyterlab
16+
- git
17+
- python-dateutil
18+
- affine
19+
- scipy
20+
- openpyxl
21+
- xlrd
22+
- pandas>=3
23+
- netcdf4
24+
- pyshp
25+
- rasterio
26+
- rasterstats
27+
- fiona
28+
- descartes
29+
- pyproj
30+
- shapely
31+
- geos
32+
- geojson
33+
- geopandas
34+
- xarray
35+
- rioxarray
36+
- uxarray
37+
- pyyaml
38+
- rtree
39+
- pyvista
40+
- vtk
41+
- imageio
42+
- requests
43+
- pytest
44+
- statsmodels
45+
- dataretrieval
46+
- flopy
47+
- gis-utils
48+
- sfrmaker
49+
- contextily
50+
- cartopy
51+
- modflow-export
52+
- modflow-setup

0 commit comments

Comments
 (0)