Skip to content

Commit c48972f

Browse files
authored
Merge pull request #237 from modflowpy/v1.5.0
Release 1.5.0
2 parents fb56744 + 5ba5514 commit c48972f

20 files changed

+3056
-6249
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ jobs:
4242
shell: ${{ matrix.shell }}
4343

4444
steps:
45+
- name: Free Disk Space (Ubuntu)
46+
if: runner.os == 'Linux'
47+
uses: jlumbroso/free-disk-space@main
48+
with:
49+
tool-cache: false
50+
android: true
51+
dotnet: true
52+
haskell: true
53+
large-packages: true
54+
docker-images: true
55+
swap-storage: true
56+
4557
- name: Checkout repo
4658
uses: actions/checkout@v4
4759

@@ -55,9 +67,9 @@ jobs:
5567
uses: ts-graphviz/setup-graphviz@v2
5668

5769
- name: Setup pixi
58-
uses: prefix-dev/[email protected].2
70+
uses: prefix-dev/[email protected].8
5971
with:
60-
pixi-version: v0.34.0
72+
pixi-version: v0.42.1
6173
manifest-path: "pixi.toml"
6274

6375
- name: pixi post-install
@@ -106,7 +118,7 @@ jobs:
106118
pixi run coverage-report
107119
108120
- name: Upload coverage to Codecov
109-
uses: codecov/codecov-action@v4
121+
uses: codecov/codecov-action@v5
110122
env:
111123
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
112124
with:
@@ -133,6 +145,18 @@ jobs:
133145
shell: ${{ matrix.shell }}
134146

135147
steps:
148+
- name: Free Disk Space (Ubuntu)
149+
if: runner.os == 'Linux'
150+
uses: jlumbroso/free-disk-space@main
151+
with:
152+
tool-cache: false
153+
android: true
154+
dotnet: true
155+
haskell: true
156+
large-packages: true
157+
docker-images: true
158+
swap-storage: true
159+
136160
- name: Checkout repo
137161
uses: actions/checkout@v4
138162

@@ -146,9 +170,9 @@ jobs:
146170
uses: ts-graphviz/setup-graphviz@v2
147171

148172
- name: Setup pixi
149-
uses: prefix-dev/[email protected].2
173+
uses: prefix-dev/[email protected].8
150174
with:
151-
pixi-version: v0.34.0
175+
pixi-version: v0.42.1
152176
manifest-path: "pixi.toml"
153177

154178
- name: pixi post-install
@@ -182,7 +206,7 @@ jobs:
182206
pixi run coverage-report
183207
184208
- name: Upload coverage to Codecov
185-
uses: codecov/codecov-action@v4
209+
uses: codecov/codecov-action@v5
186210
env:
187211
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
188212
with:

.github/workflows/pymake-linting-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Setup pixi
27-
uses: prefix-dev/[email protected].2
27+
uses: prefix-dev/[email protected].8
2828
with:
29-
pixi-version: v0.34.0
29+
pixi-version: v0.42.1
3030
manifest-path: "pixi.toml"
3131

3232
- name: Lint

.github/workflows/pymake-requests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
uses: actions/checkout@v4
3232

3333
- name: Setup pixi
34-
uses: prefix-dev/[email protected].2
34+
uses: prefix-dev/[email protected].8
3535
with:
36-
pixi-version: v0.34.0
36+
pixi-version: v0.42.1
3737
manifest-path: "pixi.toml"
3838

3939
- name: pixi post-install
@@ -42,6 +42,8 @@ jobs:
4242
pixi run postinstall
4343
4444
- name: Run pytest
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4547
run: |
4648
pixi run autotest-request
4749
@@ -57,7 +59,7 @@ jobs:
5759
pixi run coverage-report
5860
5961
- name: Upload coverage to Codecov
60-
uses: codecov/codecov-action@v4
62+
uses: codecov/codecov-action@v5
6163
env:
6264
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6365
with:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: 3.9
31+
python-version: '3.10'
3232
cache: 'pip'
3333
cache-dependency-path: pyproject.toml
3434

@@ -111,7 +111,7 @@ jobs:
111111
- name: Setup Python
112112
uses: actions/setup-python@v5
113113
with:
114-
python-version: 3.9
114+
python-version: '3.10'
115115

116116
- name: Install Python dependencies
117117
run: |
@@ -120,7 +120,7 @@ jobs:
120120
pip install ".[test]"
121121
122122
- name: Download artifacts
123-
uses: dawidd6/action-download-artifact@v8
123+
uses: dawidd6/action-download-artifact@v9
124124

125125
- name: Draft release
126126
env:
@@ -158,7 +158,7 @@ jobs:
158158
- name: Setup Python
159159
uses: actions/setup-python@v5
160160
with:
161-
python-version: 3.9
161+
python-version: '3.10'
162162

163163
- name: Install Python dependencies
164164
run: |

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ venv/
8585
**/.DS_Store
8686

8787
# environment files
88-
**.env
88+
**.env
89+
90+
.trash/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Python package for building MODFLOW-based programs from source files.
44

5-
### Version 1.4.0
5+
### Version 1.5.0
66

77
[![PyPI Version](https://img.shields.io/pypi/v/mfpymake.png)](https://pypi.python.org/pypi/mfpymake)
88
[![Anaconda Version](https://anaconda.org/conda-forge/mfpymake/badges/version.svg)](https://anaconda.org/conda-forge/mfpymake)

autotest/test_build.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
test_ostag = get_ostag()
1616
test_fc_env = os.environ.get("FC")
1717
if "win" in test_ostag:
18-
meson_exclude = ("mt3dms", "vs2dt", "triangle", "gridgen", "sutra")
18+
meson_exclude = ["mt3dms", "vs2dt", "triangle", "gridgen", "sutra"]
1919
elif "win" not in test_ostag and test_fc_env in ("ifort",):
20-
meson_exclude = ("mf2000", "mf2005", "swtv4", "mflgr", "sutra")
20+
meson_exclude = ["mf2000", "mf2005", "swtv4", "mflgr", "sutra"]
2121
else:
22-
meson_exclude = ("sutra",)
22+
meson_exclude = ["sutra"]
23+
if "win" in test_ostag and test_fc_env in ("ifort",):
24+
meson_exclude += ["mf2000", "mf2005", "swtv4", "mflgr"]
25+
2326
targets_meson = [t for t in targets if t not in meson_exclude]
2427

2528
make_exclude = ("libmf6", "gridgen", "mf2000", "swtv4", "mflgr")

autotest/test_mf6_existing_meson.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33
from pathlib import Path
44
from platform import system
5-
from typing import List
65

76
import pytest
87
from modflow_devtools.misc import set_dir
@@ -15,13 +14,13 @@
1514

1615

1716
@pytest.fixture(scope="module")
18-
def targets() -> List[Path]:
17+
def targets() -> list[Path]:
1918
target = TARGET_NAME
2019
ext, shared_ext = get_binary_suffixes()
21-
executables = [target, "zbud6", "mf5to6", "libmf6"]
22-
for idx, _ in enumerate(executables[:3]):
20+
executables = [target, "zbud6", "libmf6"]
21+
for idx, _ in enumerate(executables[:-1]):
2322
executables[idx] += ext
24-
executables[3] += shared_ext
23+
executables[-1] += shared_ext
2524
return executables
2625

2726

0 commit comments

Comments
 (0)