chore: onboard onto Python 3.12-dev and Node 18 #295
Workflow file for this run
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
name: node-gyp integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
integration: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python: ["3.8", "3.x", "3.12-dev"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Clone gyp-next | |
uses: actions/checkout@v3 | |
with: | |
path: gyp-next | |
- name: Clone nodejs/node-gyp | |
uses: actions/checkout@v3 | |
with: | |
repository: nodejs/node-gyp | |
path: node-gyp | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
cd node-gyp | |
npm install --no-progress | |
- name: Replace gyp in node-gyp | |
shell: bash | |
run: | | |
rm -rf node-gyp/gyp | |
cp -r gyp-next node-gyp/gyp | |
- name: Run tests | |
run: | | |
cd node-gyp | |
npm test |