Skip to content

Commit de8c670

Browse files
authored
Merge pull request #693 from MPAS-Dev/copilot/add-python-3-14-ci-testing
Add Python 3.14 to CI testing matrix
2 parents 874c637 + f0acdaf commit de8c670

14 files changed

+104
-33
lines changed

.github/workflows/build_workflow.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ on:
2626
env:
2727
CANCEL_OTHERS: false
2828
PATHS_IGNORE: '["**/README.md", "**/docs/**"]'
29-
PYTHON_VERSION: "3.13"
29+
PYTHON_VERSION: "3.14"
30+
BUILD_PYTHON_VERSION: "3.13"
3031

3132
jobs:
3233
pre-commit-hooks:
@@ -61,41 +62,42 @@ jobs:
6162
shell: bash -l {0}
6263
strategy:
6364
matrix:
64-
python-version: ["3.10", "3.11", "3.12", "3.13"]
65+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6566
fail-fast: false
6667
steps:
6768
- uses: actions/checkout@v6
6869

6970
- name: Create Build Environment
7071
uses: mamba-org/setup-micromamba@v2
7172
with:
72-
environment-name: mpas_tools_dev
73+
environment-name: mpas_tools_build
7374
init-shell: bash
7475
condarc: |
7576
channel_priority: strict
7677
channels:
7778
- conda-forge
7879
create-args: >-
79-
python=${{ matrix.python-version }}
80+
python=${{ env.BUILD_PYTHON_VERSION }}
8081
81-
- name: Finalize Build Environment
82+
- name: Build mpas_tools package
8283
run: |
8384
conda install conda conda-build
8485
conda build -m "conda_package/ci/linux_64_python${{ matrix.python-version }}.____cpython.yaml" "conda_package/recipe"
86+
# Add local build channel first for subsequent micromamba usage
87+
micromamba config append channels "$CONDA_PREFIX/conda-bld"
88+
micromamba config append channels conda-forge
8589
86-
- name: Install mpas_tools
90+
- name: Create Test Environment
8791
run: |
88-
conda install -y -c ${CONDA_PREFIX}/conda-bld/ \
89-
mpas_tools python=${{ matrix.python-version }} \
90-
sphinx mock sphinx_rtd_theme
92+
micromamba create -y -n mpas_tools_test \
93+
python=${{ env.BUILD_PYTHON_VERSION }} \
94+
mpas_tools \
95+
sphinx \
96+
mock \
97+
sphinx_rtd_theme
9198
9299
- name: Build Sphinx Docs
93100
run: |
101+
micromamba activate mpas_tools_test
94102
cd conda_package/docs
95103
DOCS_VERSION=test make versioned-html
96-
condarc: |
97-
channel_priority: strict
98-
channels:
99-
- conda-forge
100-
create-args: >-
101-
python=${{ matrix.python-version }}

.github/workflows/docs_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
types: [published]
1010

1111
env:
12-
PYTHON_VERSION: "3.13"
12+
PYTHON_VERSION: "3.14"
1313

1414
jobs:
1515
publish-docs:

.github/workflows/pre_commit_update_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
UP_TO_DATE: false
17-
PYTHON_VERSION: "3.13"
17+
PYTHON_VERSION: "3.14"
1818
REVIEWERS: "xylar,andrewdnolan"
1919

2020
jobs:

conda_package/ci/linux_64_python3.10.____cpython.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ c_stdlib:
22
- sysroot
33
c_stdlib_version:
44
- '2.17'
5-
cdt_name:
6-
- conda
75
channel_sources:
86
- conda-forge
97
channel_targets:
@@ -21,7 +19,7 @@ fortran_compiler_version:
2119
hdf5:
2220
- 1.14.6
2321
libnetcdf:
24-
- 4.9.2
22+
- 4.9.3
2523
netcdf_fortran:
2624
- '4.6'
2725
pin_run_as_build:

conda_package/ci/linux_64_python3.11.____cpython.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ c_stdlib:
22
- sysroot
33
c_stdlib_version:
44
- '2.17'
5-
cdt_name:
6-
- conda
75
channel_sources:
86
- conda-forge
97
channel_targets:
@@ -21,7 +19,7 @@ fortran_compiler_version:
2119
hdf5:
2220
- 1.14.6
2321
libnetcdf:
24-
- 4.9.2
22+
- 4.9.3
2523
netcdf_fortran:
2624
- '4.6'
2725
pin_run_as_build:

conda_package/ci/linux_64_python3.12.____cpython.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ c_stdlib:
22
- sysroot
33
c_stdlib_version:
44
- '2.17'
5-
cdt_name:
6-
- conda
75
channel_sources:
86
- conda-forge
97
channel_targets:
@@ -21,7 +19,7 @@ fortran_compiler_version:
2119
hdf5:
2220
- 1.14.6
2321
libnetcdf:
24-
- 4.9.2
22+
- 4.9.3
2523
netcdf_fortran:
2624
- '4.6'
2725
pin_run_as_build:

conda_package/ci/linux_64_python3.13.____cpython.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ c_stdlib:
22
- sysroot
33
c_stdlib_version:
44
- '2.17'
5-
cdt_name:
6-
- conda
75
channel_sources:
86
- conda-forge
97
channel_targets:
@@ -21,7 +19,7 @@ fortran_compiler_version:
2119
hdf5:
2220
- 1.14.6
2321
libnetcdf:
24-
- 4.9.2
22+
- 4.9.3
2523
netcdf_fortran:
2624
- '4.6'
2725
pin_run_as_build:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
c_stdlib:
2+
- sysroot
3+
c_stdlib_version:
4+
- '2.17'
5+
channel_sources:
6+
- conda-forge
7+
channel_targets:
8+
- conda-forge main
9+
cxx_compiler:
10+
- gxx
11+
cxx_compiler_version:
12+
- '14'
13+
docker_image:
14+
- quay.io/condaforge/linux-anvil-x86_64:alma9
15+
fortran_compiler:
16+
- gfortran
17+
fortran_compiler_version:
18+
- '14'
19+
hdf5:
20+
- 1.14.6
21+
libnetcdf:
22+
- 4.9.3
23+
netcdf_fortran:
24+
- '4.6'
25+
pin_run_as_build:
26+
python:
27+
min_pin: x.x
28+
max_pin: x.x
29+
python:
30+
- 3.14.* *_cp314
31+
target_platform:
32+
- linux-64
33+
zip_keys:
34+
- - cxx_compiler_version
35+
- fortran_compiler_version

conda_package/ci/osx_64_python3.10.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fortran_compiler_version:
2121
hdf5:
2222
- 1.14.6
2323
libnetcdf:
24-
- 4.9.2
24+
- 4.9.3
2525
llvm_openmp:
2626
- '19'
2727
macos_machine:

conda_package/ci/osx_64_python3.11.____cpython.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fortran_compiler_version:
2121
hdf5:
2222
- 1.14.6
2323
libnetcdf:
24-
- 4.9.2
24+
- 4.9.3
2525
llvm_openmp:
2626
- '19'
2727
macos_machine:

0 commit comments

Comments
 (0)