Skip to content

Commit

Permalink
Fix venv usage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed Jul 3, 2024
1 parent f567da5 commit a86d609
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,38 @@ jobs:
with:
python-version: '3.10'

- name: Install Python setuptools
- name: Install Python setuptools (Unix-likes)
# This is needed for Python 3.12+, since many versions of node-gyp
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
# out of the box. 'setuptools' package provides 'distutils'.
if: ${{ runner.os != 'Windows' }}
run: |
python3 -m venv CI_venv
source CI_venv/bin/activate
python3 -m pip install setuptools
- name: Install dependencies
- name: Install Python setuptools (Windows)
# This is needed for Python 3.12+, since many versions of node-gyp
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
# out of the box. 'setuptools' package provides 'distutils'.
if: ${{ runner.os == 'Windows' }}
run: |
python3 -m venv CI_venv
CI_venv\Scripts\activate.bat
python3 -m pip install setuptools
- name: Install dependencies (Unix-likes)
if: ${{ runner.os != 'Windows' }}
run: |
source CI_venv/bin/activate
npm install
- name: Install dependencies (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
CI_venv\Scripts\activate.bat
npm install
- name: Lint
run: npm run standard

Expand Down

0 comments on commit a86d609

Please sign in to comment.