Skip to content

Commit 51e216e

Browse files
authored
Feature: Add python 3.13 support (MHKiT-Software#445)
This PR verifies MHKiT-Python supports Python 3.13. No python code changes were required. README was updated to include Python 3.13 Actions were updated to include 3.13 in test matrices and for notebook tests (single version) Action versions for setup-miniconda and download-artifact were update
1 parent df4e431 commit 51e216e

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/main.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Py 3.10, 3.11, 3.12 | Windows Mac Linux
1+
name: Py 3.10, 3.11, 3.12, 3.13 | Windows Mac Linux
22

33
on:
44
pull_request:
@@ -79,7 +79,7 @@ jobs:
7979
uses: actions/checkout@v6
8080

8181
- name: Setup Miniconda
82-
uses: conda-incubator/setup-miniconda@v3
82+
uses: conda-incubator/setup-miniconda@v4
8383
with:
8484
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
8585
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -124,7 +124,7 @@ jobs:
124124
uses: actions/checkout@v6
125125

126126
- name: Setup Miniconda
127-
uses: conda-incubator/setup-miniconda@v3
127+
uses: conda-incubator/setup-miniconda@v4
128128
with:
129129
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
130130
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -167,7 +167,7 @@ jobs:
167167
uses: actions/checkout@v6
168168

169169
- name: Setup Miniconda
170-
uses: conda-incubator/setup-miniconda@v3
170+
uses: conda-incubator/setup-miniconda@v4
171171
with:
172172
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
173173
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -207,15 +207,15 @@ jobs:
207207
fail-fast: false
208208
matrix:
209209
os: ${{fromJson(needs.set-os.outputs.matrix_os)}}
210-
python-version: ['3.10', '3.11', '3.12']
210+
python-version: ['3.10', '3.11', '3.12', '3.13']
211211
env:
212212
PYTHON_VER: ${{ matrix.python-version }}
213213

214214
steps:
215215
- uses: actions/checkout@v6
216216

217217
- name: Setup Miniconda
218-
uses: conda-incubator/setup-miniconda@v3
218+
uses: conda-incubator/setup-miniconda@v4
219219
with:
220220
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
221221
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -237,7 +237,7 @@ jobs:
237237
pip install -e ".[all,dev]" --no-deps
238238
239239
- name: Download data from artifact
240-
uses: actions/download-artifact@v4
240+
uses: actions/download-artifact@v8
241241
with:
242242
name: data
243243
path: ~/.cache/mhkit
@@ -265,7 +265,7 @@ jobs:
265265
fail-fast: false
266266
matrix:
267267
os: ${{fromJson(needs.set-os.outputs.matrix_os)}}
268-
python-version: ['3.10', '3.11', '3.12']
268+
python-version: ['3.10', '3.11', '3.12', '3.13']
269269

270270
steps:
271271
- name: Set up Python ${{ matrix.python-version }}
@@ -286,7 +286,7 @@ jobs:
286286
uses: actions/checkout@v6
287287

288288
- name: Download data from artifact
289-
uses: actions/download-artifact@v4
289+
uses: actions/download-artifact@v8
290290
with:
291291
name: data
292292
path: ~/.cache/mhkit
@@ -335,13 +335,13 @@ jobs:
335335
fail-fast: false
336336
matrix:
337337
os: ${{fromJson(needs.set-os.outputs.matrix_os)}}
338-
python-version: ['3.10', '3.11', '3.12']
338+
python-version: ['3.10', '3.11', '3.12', '3.13']
339339

340340
steps:
341341
- uses: actions/checkout@v6
342342

343343
- name: Setup Miniconda
344-
uses: conda-incubator/setup-miniconda@v3
344+
uses: conda-incubator/setup-miniconda@v4
345345
with:
346346
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
347347
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -363,13 +363,13 @@ jobs:
363363
pip install -e ".[all,dev]" --no-deps
364364
365365
- name: Download Wave Hindcast data from artifact
366-
uses: actions/download-artifact@v4
366+
uses: actions/download-artifact@v8
367367
with:
368368
name: wave-hindcast-data
369369
path: ~/.cache/mhkit/wave-hindcast
370370

371371
- name: Download Wind Hindcast data from artifact
372-
uses: actions/download-artifact@v4
372+
uses: actions/download-artifact@v8
373373
with:
374374
name: wind-hindcast-data
375375
path: ~/.cache/mhkit/wind-hindcast
@@ -460,7 +460,7 @@ jobs:
460460
matrix:
461461
module:
462462
[wave, tidal, river, dolfyn, power, loads, mooring, acoustics, utils]
463-
python-version: ['3.12']
463+
python-version: ['3.13']
464464

465465
steps:
466466
- uses: actions/checkout@v6
@@ -471,7 +471,7 @@ jobs:
471471
python-version: ${{ matrix.python-version }}
472472

473473
- name: Download non-hindcast data
474-
uses: actions/download-artifact@v4
474+
uses: actions/download-artifact@v8
475475
with:
476476
name: data
477477
path: ~/.cache/mhkit
@@ -560,7 +560,7 @@ jobs:
560560
uses: actions/checkout@v6
561561

562562
- name: Setup Miniconda
563-
uses: conda-incubator/setup-miniconda@v3
563+
uses: conda-incubator/setup-miniconda@v4
564564
with:
565565
miniconda-version: ${{ env.CONDA_MINICONDA_VERSION }}
566566
auto-update-conda: ${{ env.CONDA_AUTO_UPDATE_CONDA }}
@@ -582,21 +582,21 @@ jobs:
582582
pip install -e ".[all,dev]" --no-deps
583583
584584
- name: Download non-hindcast data
585-
uses: actions/download-artifact@v4
585+
uses: actions/download-artifact@v8
586586
with:
587587
name: data
588588
path: ~/.cache/mhkit
589589

590590
- name: Download Wave Hindcast data (if available)
591591
if: (needs.check-changes.outputs.should-run-hindcast == 'true')
592-
uses: actions/download-artifact@v4
592+
uses: actions/download-artifact@v8
593593
with:
594594
name: wave-hindcast-data
595595
path: ~/.cache/mhkit/wave-hindcast
596596

597597
- name: Download Wind Hindcast data (if available)
598598
if: (needs.check-changes.outputs.should-run-hindcast == 'true')
599-
uses: actions/download-artifact@v4
599+
uses: actions/download-artifact@v8
600600
with:
601601
name: wind-hindcast-data
602602
path: ~/.cache/mhkit/wind-hindcast

.github/workflows/test-wheel-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ['3.10', '3.11', '3.12']
19+
python-version: ['3.10', '3.11', '3.12', '3.13']
2020

2121
steps:
2222
- uses: actions/checkout@v6

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ See the [MHKiT documentation](https://mhkit-software.github.io/MHKiT) for more i
3232

3333
## Installation
3434

35-
[MHKiT-Python](https://github.com/MHKiT-Software/MHKiT-Python) requires [Python (3.10-3.12)](https://www.python.org/).
35+
[MHKiT-Python](https://github.com/MHKiT-Software/MHKiT-Python) requires [Python (3.10-3.13)](https://www.python.org/).
3636

3737
See [installation instructions](https://mhkit-software.github.io/MHKiT/installation.html) for more information.
3838

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python>=3.10,<3.13
6+
- python>=3.10,<3.14
77
- pip
88
- numpy>=2.0.0
99
- pandas>=2.2.2

0 commit comments

Comments
 (0)