diff --git a/.github/workflows/build-neuron.yml b/.github/workflows/build-neuron.yml index b0e68b0..2ae106c 100644 --- a/.github/workflows/build-neuron.yml +++ b/.github/workflows/build-neuron.yml @@ -71,6 +71,8 @@ jobs: env: SDK_ROOT: $(xcrun --sdk macosx --show-sdk-path) OS_FLAVOUR: ${{matrix.os.flavour}} + # version of Python we will build NEURON with on MacOS + MACOSX_PY_VERSION: 3.12 UNPRIVILEGED_USER: runner # User created+used inside Docker containers # Extra software collections to be installed and enabled on CentOS7 SOFTWARE_COLLECTIONS_centos_7: devtoolset-9 rh-git218 rh-python38 @@ -128,6 +130,12 @@ jobs: env: FLAVOUR_SCRIPT: scripts/install_${{matrix.os.flavour}}.sh + - if: ${{matrix.os.flavour}} == 'macOS' + name: Set up Python@${{ env.MACOSX_PY_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.MACOSX_PY_VERSION }} + # Checkout the repository; do this before the privilege step so that we # can chown the result there - name: Checkout NEURON