@@ -25,11 +25,16 @@ jobs:
25
25
node-version : ${{ matrix.node-version }}
26
26
- name : Check Node.js version
27
27
run : node -pe process.versions
28
- - name : Install Python 2.7
29
- if : ${{ matrix.node-version == '10.16.0' }}
30
- run : |
31
- sudo apt install python2.7
32
- echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
28
+ - name : Check npm version
29
+ run : npm -v
30
+ - name : Install Python 2.7 (node <16.x)
31
+ if : ${{ contains(fromJSON('["10.16.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }}
32
+ uses :
LizardByte/[email protected]
33
+ with :
34
+ python-version : ' 2.7'
35
+ - name : Use Python 2.7 (node <16.x)
36
+ if : ${{ contains(fromJSON('["10.16.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }}
37
+ run : echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
33
38
- name : Install module
34
39
run : npm install
35
40
- name : Run tests
54
59
python-version : ' 3.10'
55
60
- name : Check Node.js version
56
61
run : node -pe process.versions
62
+ - name : Check npm version
63
+ run : npm -v
57
64
- name : Install module
58
65
run : npm install
59
66
- name : Run tests
72
79
python-version : ' 3.10'
73
80
- name : Check Node.js version
74
81
run : node -pe process.versions
82
+ - name : Check npm version
83
+ run : npm -v
75
84
- name : Install module
76
85
run : npm install
77
86
- name : Run tests
92
101
node-version : ${{ matrix.node-version }}
93
102
- name : Check Node.js version
94
103
run : node -pe process.versions
104
+ - name : Check npm version
105
+ run : npm -v
95
106
- name : Install module
96
107
run : npm install
97
108
- name : Run tests
0 commit comments