downgrade python to 3.11 #628
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x] | |
os: [ubuntu-latest, windows-2019, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm config set package-lock false | |
- name: install linux dependency | |
if: startsWith(matrix.os,'ubuntu') | |
run: sudo apt-get install libxtst-dev | |
- name: Install Python 3.11 using pyenv | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
curl -fsSL https://pyenv.sh | bash | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc | |
pyenv install 3.11 | |
pyenv global 3.11 | |
- run: npm install | |
- run: npm test | |
env: | |
CI: true | |
ELECTRON_QA: true |