Skip to content

Commit e64a0de

Browse files
authored
Pin max Python version to 3.12 on MacOS (#74)
1 parent 974cb10 commit e64a0de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-neuron.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
env:
7272
SDK_ROOT: $(xcrun --sdk macosx --show-sdk-path)
7373
OS_FLAVOUR: ${{matrix.os.flavour}}
74+
# version of Python we will build NEURON with on MacOS
75+
MACOSX_PY_VERSION: 3.12
7476
UNPRIVILEGED_USER: runner # User created+used inside Docker containers
7577
# Extra software collections to be installed and enabled on CentOS7
7678
SOFTWARE_COLLECTIONS_centos_7: devtoolset-9 rh-git218 rh-python38
@@ -128,6 +130,12 @@ jobs:
128130
env:
129131
FLAVOUR_SCRIPT: scripts/install_${{matrix.os.flavour}}.sh
130132

133+
- if: ${{matrix.os.flavour}} == 'macOS'
134+
name: Set up Python@${{ env.MACOSX_PY_VERSION }}
135+
uses: actions/setup-python@v5
136+
with:
137+
python-version: ${{ env.MACOSX_PY_VERSION }}
138+
131139
# Checkout the repository; do this before the privilege step so that we
132140
# can chown the result there
133141
- name: Checkout NEURON

0 commit comments

Comments
 (0)