From 3f02b207580f8cfbe9e5c9786050d88d02b908e5 Mon Sep 17 00:00:00 2001 From: Or Geva Date: Sun, 22 Oct 2023 09:15:11 +0300 Subject: [PATCH] Fix GHA python tests --- .github/workflows/test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1388510aa..89379b742 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,14 +23,24 @@ jobs: with: submodules: true ref: ${{ github.event.pull_request.head.sha }} + - name: Setup macOS # Fix 'nvm is not compatible with the npm config "prefix" option' error on macOS run: unset npm_config_prefix if: runner.os == 'macOS' + + - name: Setup Python3 + uses: actions/setup-python@v4 + with: + python-version: "3.11.5" + if: runner.os == 'windows-latest' + - name: Setup Python3 uses: actions/setup-python@v4 with: python-version: "3.x" + if: runner.os != 'windows-latest' + - name: Setup NodeJS uses: actions/setup-node@v3 with: @@ -39,7 +49,7 @@ jobs: - name: Install run: npm i --ignore-scripts - + # Make sure no new dependencies were installed after running 'npm i' - name: Make sure branch is clean run: git diff --exit-code @@ -73,4 +83,3 @@ jobs: # Run tests with Virtual frame buffer to allow running VS-Code without a display run: xvfb-run npm t if: runner.os == 'Linux' -