-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: attempt to fix issues related to old node-gyp + new Python
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,14 @@ jobs: | |
node-version: ${{ matrix.node-version }} | ||
- name: Check Node.js version | ||
run: node -pe process.versions | ||
- name: Install Python 2.7 | ||
if: ${{ matrix.node-version == '10.7.0' }} | ||
run: | | ||
sudo apt install python2.7 | ||
echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV" | ||
- name: Check npm version | ||
run: npm -v | ||
- name: Install Python 2.7 (node <16.x) | ||
if: ${{ contains(fromJSON('["10.7.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }} | ||
uses: LizardByte/[email protected] | ||
- name: Use Python 2.7 (node <16.x) | ||
if: ${{ contains(fromJSON('["10.7.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }} | ||
runs: echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV" | ||
- name: Install module | ||
run: npm install | ||
- name: Run tests | ||
|
@@ -51,6 +54,8 @@ jobs: | |
python-version: '3.10' | ||
- name: Check Node.js version | ||
run: node -pe process.versions | ||
- name: Check npm version | ||
run: npm -v | ||
- name: Install module | ||
run: npm install | ||
- name: Run tests | ||
|
@@ -71,6 +76,8 @@ jobs: | |
node-version: ${{ matrix.node-version }} | ||
- name: Check Node.js version | ||
run: node -pe process.versions | ||
- name: Check npm version | ||
run: npm -v | ||
- name: Install module | ||
run: npm install | ||
- name: Run tests | ||
|