Update GitHub Actions workflow to use Node.js 20 #4
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: PyGC Operator Checker CI | |
on: | |
push: | |
branches: | |
- PyGC | |
pull_request: | |
branches: | |
- PyGC | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10, 3.11] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
node-version: "20" # Ensuring we are using Node.js 20 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
node-version: "20" # Ensuring Node.js 20 is used | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
- name: Run tests | |
run: | | |
PYTHONPATH=. pytest tests/ |