Skip to content

Commit e96a1e7

Browse files
authored
Merge pull request MOM6-community#37 from hdrake/upgrade-Python
Add CI testing and upgrade Python >= 3.12
2 parents d1ac59b + 74fb267 commit e96a1e7

6 files changed

Lines changed: 56 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
shell: bash -l {0}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version: ['3.12', '3.13', '3.14']
22+
23+
steps:
24+
- name: Cancel previous runs
25+
uses: styfle/cancel-workflow-action@0.7.0
26+
with:
27+
access_token: ${{ github.token }}
28+
- name: Checkout source
29+
uses: actions/checkout@v2
30+
31+
- name: Conda setup
32+
uses: conda-incubator/setup-miniconda@v2
33+
with:
34+
channels: conda-forge
35+
mamba-version: '*'
36+
python-version: ${{ matrix.python-version }}
37+
activate-environment: test_env_sectionate
38+
auto-activate-base: false
39+
40+
- name: Set up conda environment
41+
run: |
42+
mamba env update -f ci/environment.yml
43+
python -m pip install -e .
44+
- name: Conda list information
45+
run: |
46+
conda env list
47+
conda list
48+
- name: Test with pytest
49+
run: |
50+
pytest

binder/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: test_env_sectionate
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.8
5+
- python>=3.12
66
- cartopy
77
- cftime
88
- ipython

ci/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: test_env_sectionate
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.8
5+
- python>=3.12
66
- pytest

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: docs_env_sectionate
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.8
5+
- python>=3.12
66
- cartopy
77
- cftime
88
- ipython

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
description = "A package to sample grid-consistent sections from ocean model outputs"
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.12"
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
@@ -38,4 +38,4 @@ allow-direct-references = true
3838
path = "sectionate/version.py"
3939

4040
[tool.hatch.build]
41-
exclude = ["examples/**", "data/**"]
41+
exclude = ["examples/**", "data/**"]

sectionate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""sectionate: version information"""
22

3-
__version__ = "0.3.0"
3+
__version__ = "0.3.1"

0 commit comments

Comments
 (0)