Skip to content

ci: fix exit-code-5 (no tests) and opt into Node.js 24 #2

ci: fix exit-code-5 (no tests) and opt into Node.js 24

ci: fix exit-code-5 (no tests) and opt into Node.js 24 #2

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Run tests
run: pytest --tb=short || [ $? -eq 5 ]