@@ -25,11 +25,16 @@ jobs:
2525 node-version : ${{ matrix.node-version }}
2626 - name : Check Node.js version
2727 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"
3338 - name : Install module
3439 run : npm install
3540 - name : Run tests
5459 python-version : ' 3.10'
5560 - name : Check Node.js version
5661 run : node -pe process.versions
62+ - name : Check npm version
63+ run : npm -v
5764 - name : Install module
5865 run : npm install
5966 - name : Run tests
7279 python-version : ' 3.10'
7380 - name : Check Node.js version
7481 run : node -pe process.versions
82+ - name : Check npm version
83+ run : npm -v
7584 - name : Install module
7685 run : npm install
7786 - name : Run tests
92101 node-version : ${{ matrix.node-version }}
93102 - name : Check Node.js version
94103 run : node -pe process.versions
104+ - name : Check npm version
105+ run : npm -v
95106 - name : Install module
96107 run : npm install
97108 - name : Run tests
0 commit comments