ci: pin python version to 3.10.8 as node-gyp currently depends on it #397
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: any-pr | |
on: [pull_request] | |
jobs: | |
build_test: | |
name: Build test | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [14.x, 16.x, 18.x] | |
os: [macos-latest, ubuntu-latest] # not include windows due to node-gyp bug | |
# toolchain: [aarch64-apple-darwin, ] # not include windows due to node-gyp bug | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: python -V | |
# Setup up python tools | |
# Needed since since node-gyp depends on distutils package which has now been removed in python version 3.12 | |
- run: pip install setuptools | |
- run: yarn global add [email protected] | |
- run: node-gyp -v | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint | |
- run: yarn build | |
- run: yarn test --coverage | |
- run: yarn benchmark |