Skip to content

Commit

Permalink
Fix GHA python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Oct 22, 2023
1 parent 065c8b1 commit 55ce6a3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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'

0 comments on commit 55ce6a3

Please sign in to comment.