Skip to content

Commit 56c8985

Browse files
authored
Merge pull request #374 from xylar/update-to-mpas-tools-1.3.2
Update to v0.9.0-alpha.2 with mpas_tools v1.3.2
2 parents 85b0a73 + ce5228a commit 56c8985

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

.github/workflows/build_workflow.yml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI/CD Build Workflow
1+
name: Build and Test Polaris
22

33
on:
44
push:
@@ -30,10 +30,10 @@ jobs:
3030
uses: actions/checkout@v5
3131

3232
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
33-
name: Set up Python 3.10
33+
name: Set up Python 3.13
3434
uses: actions/setup-python@v6
3535
with:
36-
python-version: "3.10"
36+
python-version: "3.13"
3737

3838
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3939
id: file_changes
@@ -51,7 +51,7 @@ jobs:
5151
extra_args: --files ${{ steps.file_changes.outputs.files}}
5252

5353
build:
54-
name: test polaris - python ${{ matrix.python-version }}
54+
name: test polaris - py ${{ matrix.python-version }}${{ matrix.env_only && ' (env_only)' || '' }}
5555
runs-on: ubuntu-latest
5656
timeout-minutes: 20
5757
defaults:
@@ -60,6 +60,10 @@ jobs:
6060
strategy:
6161
matrix:
6262
python-version: ["3.10", "3.11", "3.12", "3.13"]
63+
env_only: [false]
64+
include:
65+
- python-version: "3.13"
66+
env_only: true
6367
fail-fast: false
6468
steps:
6569
- id: skip_check
@@ -78,10 +82,8 @@ jobs:
7882
# Increase this value to reset cache if conda-dev-spec.template has not changed in the workflow
7983
CACHE_NUMBER: 0
8084
with:
81-
path: ~/conda_pkgs_dir_py${{ matrix.python-version }}
82-
key:
83-
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{
84-
hashFiles('configure_polaris_envs.py,deploy/*') }}
85+
path: ~/conda_pkgs_dir_py${{ matrix.python-version }}${{ matrix.env_only && '_envonly' || '' }}
86+
key: ${{ runner.os }}-${{ matrix.python-version }}${{ matrix.env_only && '-envonly' || '' }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('configure_polaris_envs.py,deploy/*') }}
8587

8688
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
8789
name: Set up Conda Environment
@@ -101,16 +103,30 @@ jobs:
101103
name: Install polaris
102104
run: |
103105
git config --global url."https://github.com/".insteadOf "[email protected]:"
104-
./configure_polaris_envs.py \
105-
--env_name polaris_test \
106-
--verbose \
107-
--python=${{ matrix.python-version }}
108-
source load_polaris_test_mpich.sh
106+
if [ "${{ matrix.env_only }}" = "true" ]; then
107+
./configure_polaris_envs.py \
108+
--conda_env_only \
109+
--env_name polaris_test \
110+
--verbose \
111+
--python=${{ matrix.python-version }}
112+
source load_polaris_test.sh
113+
else
114+
./configure_polaris_envs.py \
115+
--env_name polaris_test \
116+
--verbose \
117+
--python=${{ matrix.python-version }}
118+
source load_polaris_test_mpich.sh
119+
fi
109120
python -c "import polaris; import polaris.version; print(polaris.version.__version__)"
110121
111122
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
112123
name: Build Sphinx Docs
113124
run: |
114-
source load_polaris_test_mpich.sh
125+
if [ "${{ matrix.env_only }}" = "true" ]; then
126+
source load_polaris_test.sh
127+
else
128+
source load_polaris_test_mpich.sh
129+
fi
130+
DOCS_VERSION=test
115131
cd docs
116-
DOCS_VERSION=test make versioned-html
132+
DOCS_VERSION=$DOCS_VERSION make versioned-html

.github/workflows/docs_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI/CD Release Workflow
1+
name: Publish Docs
22

33
on:
44
push:
@@ -7,6 +7,8 @@ on:
77
release:
88
types: [published]
99

10+
workflow_dispatch:
11+
1012
env:
1113
PYTHON_VERSION: "3.13"
1214

deploy/conda-dev-spec.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base
2-
python>=3.10,<=3.13
2+
python>=3.10,<3.14
33
cartopy
44
cartopy_offlinedata
55
cmocean

deploy/default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mpi = nompi
2323
geometric_features = 1.6.1
2424
mache = 1.32.0
2525
conda_moab = 5.5.1
26-
mpas_tools = 1.3.0
26+
mpas_tools = 1.3.2
2727
otps = 2021.10
2828
parallelio = 2.6.6
2929

polaris/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.0-alpha.1'
1+
__version__ = '0.9.0-alpha.2'

0 commit comments

Comments
 (0)