1- name : CI/CD Build Workflow
1+ name : Build and Test Polaris
22
33on :
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
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 :
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
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
0 commit comments