Skip to content

ci: pin python version to 3.10.8 as node-gyp currently depends on it #394

ci: pin python version to 3.10.8 as node-gyp currently depends on it

ci: pin python version to 3.10.8 as node-gyp currently depends on it #394

Workflow file for this run

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 }}
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
- run: yarn global add node-gyp
- run: node-gyp -v
- run: python -V
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test --coverage
- run: yarn benchmark