Skip to content

Commit

Permalink
ci: fix issues related to old node-gyp + new Python
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Feb 1, 2025
1 parent 08c5dd8 commit 42491a6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Check Node.js version
run: node -pe process.versions
- name: Install Python 2.7
if: ${{ matrix.node-version == '10.16.0' }}
run: |
sudo apt install python2.7
echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
- name: Check npm version
run: npm -v
- name: Install Python 2.7 (node <16.x)
if: ${{ contains(fromJSON('["10.16.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }}
uses: LizardByte/[email protected]
with:
python-version: '2.7'
- name: Use Python 2.7 (node <16.x)
if: ${{ contains(fromJSON('["10.16.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }}
run: echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
- name: Install module
run: npm install
- name: Run tests
Expand All @@ -54,6 +59,8 @@ jobs:
python-version: '3.10'
- name: Check Node.js version
run: node -pe process.versions
- name: Check npm version
run: npm -v
- name: Install module
run: npm install
- name: Run tests
Expand All @@ -72,6 +79,8 @@ jobs:
python-version: '3.10'
- name: Check Node.js version
run: node -pe process.versions
- name: Check npm version
run: npm -v
- name: Install module
run: npm install
- name: Run tests
Expand All @@ -92,6 +101,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Check Node.js version
run: node -pe process.versions
- name: Check npm version
run: npm -v
- name: Install module
run: npm install
- name: Run tests
Expand Down

0 comments on commit 42491a6

Please sign in to comment.