From e3e1602fe89a492e238aae39770d9ac26f79496e Mon Sep 17 00:00:00 2001 From: youben11 Date: Wed, 2 Nov 2022 11:59:36 +0100 Subject: [PATCH] fix(ci): set python to 3.10 in macos test runner default is now 3.11 which we don't support yet, mainly due to our version of pybind11. 2.10.1 is the first pybind11 version to supports it --- .github/workflows/continuous-integration.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 0d878a402..8344fd24f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -41,7 +41,6 @@ jobs: uses: fernandrone/linelint@0.0.4 id: linelint - CheckLicense: runs-on: ubuntu-latest steps: @@ -204,6 +203,12 @@ jobs: with: toolchain: stable + # MacOS now comes with 3.11 which we don't yet support because of pybind11 (2.10.1 supports it) + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install Deps run: | brew install ninja ccache @@ -240,7 +245,7 @@ jobs: cd compiler echo "Debug: ccache statistics (prior to the build):" ccache -s - make all run-check-tests + make Python3_EXECUTABLE=$(which python) all run-check-tests echo "Debug: ccache statistics (after the build):" ccache -s