Skip to content

Commit 22c6952

Browse files
authored
Merge pull request #19 from per1234/pin-test-env-python
Use node-gyp compatible version of Python in runner for test workflow
2 parents f0d8241 + dcec573 commit 22c6952

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: .github/workflows/test-typescript-npm.yml

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Test TypeScript
33
env:
44
# See: https://github.com/actions/setup-node/#readme
55
NODE_VERSION: 10.x
6+
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
7+
# Using newest version documented as supported by node-gyp dependency:
8+
# https://github.com/nodejs/node-gyp/tree/v7.1.2#installation
9+
PYTHON_VERSION: 3.8
610

711
on:
812
push:
@@ -60,6 +64,11 @@ jobs:
6064
with:
6165
node-version: ${{ env.NODE_VERSION }}
6266

67+
- name: Install Python
68+
uses: actions/setup-python@v4
69+
with:
70+
python-version: ${{ env.PYTHON_VERSION }}
71+
6372
- name: Install dependencies
6473
run: npm install
6574

0 commit comments

Comments
 (0)