Skip to content

Commit

Permalink
ci: install python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamScience committed Nov 10, 2024
1 parent 34a6ffd commit e8c8a51
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,27 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 20

- name: Setup Python and Install distutils (if needed)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python dependencies for node-gyp on Ubuntu/MacOS
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y python3-distutils python3-setuptools
- name: Install Python dependencies for node-gyp on macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install [email protected]
echo "Setting Python version for node-gyp"
npm config set python $(which python3)
- name: Install Python dependencies for node-gyp on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
npm config set python $(where python)
- run: npm install
- run: npm test

0 comments on commit e8c8a51

Please sign in to comment.