diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1388510a..cf6309f7 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: ${{ matrix.os == 'windows-latest' }} + - name: Setup Python3 uses: actions/setup-python@v4 with: python-version: "3.x" + if: ${{ matrix.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' -