Skip to content

Commit

Permalink
Lock Python version for node-gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Nov 10, 2023
1 parent b2c92a3 commit 06a7408
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:

env:
PYTHON_VERSION: '3.11'

jobs:
test-native:
runs-on: ${{matrix.os}}
Expand All @@ -21,6 +24,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
# npm<10.2.3 ships a version of node-gyp that doesn't support Python>3.11.
- name: Set up Python ${{env.PYTHON_VERSION}}
uses: actions/setup-python@4
with:
python-version: ${{env.PYTHON_VERSION}}
- name: Build
run: npm install --pqclean-backend=native
- name: Test
Expand Down Expand Up @@ -140,6 +148,11 @@ jobs:
with:
name: wasm-gen
path: wasm/gen
# npm<10.2.3 ships a version of node-gyp that doesn't support Python>3.11.
- name: Set up Python ${{env.PYTHON_VERSION}}
uses: actions/setup-python@4
with:
python-version: ${{env.PYTHON_VERSION}}
- name: Install
run: npm install --pqclean-backend=all-algorithms
- name: Test
Expand Down

0 comments on commit 06a7408

Please sign in to comment.