Skip to content

Commit d605d62

Browse files
authored
chore: lock python version in actions (#1403)
1 parent c52e764 commit d605d62

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci-win.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Node.js CI Windows Platform
22

33
on: [push, pull_request]
44

5+
env:
6+
PYTHON_VERSION: '3.11'
7+
58
permissions:
69
contents: read
710

@@ -18,6 +21,10 @@ jobs:
1821
runs-on: ${{ matrix.os }}
1922
steps:
2023
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24+
- name: Set up Python ${{ env.PYTHON_VERSION }}
25+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
26+
with:
27+
python-version: ${{ env.PYTHON_VERSION }}
2128
- name: Use Node.js ${{ matrix.node-version }}
2229
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
2330
with:

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Node.js CI Unix Platform
22

33
on: [push, pull_request]
44

5+
env:
6+
PYTHON_VERSION: '3.11'
7+
58
permissions:
69
contents: read
710

@@ -23,6 +26,10 @@ jobs:
2326
runs-on: ${{ matrix.os }}
2427
steps:
2528
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
29+
- name: Set up Python ${{ env.PYTHON_VERSION }}
30+
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
31+
with:
32+
python-version: ${{ env.PYTHON_VERSION }}
2633
- name: Use Node.js ${{ matrix.node-version }}
2734
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
2835
with:

0 commit comments

Comments
 (0)