Skip to content

Commit 3b1a6f2

Browse files
committed
Fix Python compatibility in CI
Ref nodejs/node-gyp#2869 Ref #85 (comment)
1 parent e70d4c2 commit 3b1a6f2

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
with:
4343
node-version: 14
4444
architecture: ${{ matrix.arch }}
45+
# Temporary fix for https://github.com/nodejs/node-gyp/issues/2869
46+
# TODO: instead bump node-gyp to >= 10.0.0 (drops Node.js < 16.14)
47+
- name: Use Python 3.11
48+
uses: actions/setup-python@v4
49+
with:
50+
python-version: '3.11'
4551
- name: Install
4652
run: npm install --ignore-scripts
4753
- name: Prebuild

.github/workflows/smoke.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
with:
4444
node-version: 14
4545
architecture: ${{ matrix.arch }}
46+
# Temporary fix for https://github.com/nodejs/node-gyp/issues/2869
47+
# TODO: instead bump node-gyp to >= 10.0.0 (drops Node.js < 16.14)
48+
- name: Use Python 3.11
49+
uses: actions/setup-python@v4
50+
with:
51+
python-version: '3.11'
4652
- name: Install
4753
run: npm install --ignore-scripts
4854
- name: Prebuild

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
with:
2626
node-version: ${{ matrix.node }}
2727
architecture: ${{ matrix.arch }}
28+
# Temporary fix for https://github.com/nodejs/node-gyp/issues/2869
29+
# TODO: instead bump node-gyp to >= 10.0.0 (drops Node.js < 16.14)
30+
- name: Use Python 3.11
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: '3.11'
2834
- name: Install
2935
run: npm install
3036
- name: Test

0 commit comments

Comments
 (0)