Skip to content

Commit

Permalink
Merge pull request #19 from per1234/pin-test-env-python
Browse files Browse the repository at this point in the history
Use node-gyp compatible version of Python in runner for test workflow
  • Loading branch information
per1234 authored Nov 22, 2022
2 parents f0d8241 + dcec573 commit 22c6952
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test-typescript-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Test TypeScript
env:
# See: https://github.com/actions/setup-node/#readme
NODE_VERSION: 10.x
# See: https://github.com/actions/setup-python/tree/main#available-versions-of-python
# Using newest version documented as supported by node-gyp dependency:
# https://github.com/nodejs/node-gyp/tree/v7.1.2#installation
PYTHON_VERSION: 3.8

on:
push:
Expand Down Expand Up @@ -60,6 +64,11 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install dependencies
run: npm install

Expand Down

0 comments on commit 22c6952

Please sign in to comment.