mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-08-31 10:34:22 +00:00
Some checks are pending
Development Build / extract-version (push) Waiting to run
Development Build / build-regular (push) Blocked by required conditions
Development Build / build-single (push) Blocked by required conditions
Development Build / summary (push) Blocked by required conditions
Tests / Backend Tests (push) Waiting to run
Tests / Frontend Tests (push) Waiting to run
* chore(ci): bump GitHub Actions to Node 24 runtime versions GitHub forces Node 20 JavaScript actions to Node 24 on 2026-06-16 and removes Node 20 from runners on 2026-09-16. Bump all actions to their latest majors, which run on Node 24 (verified via each action.yml `runs.using: node24`): - actions/checkout v4 -> v6 - actions/cache v3 -> v5 - actions/setup-node v4 -> v6 - astral-sh/setup-uv v4 -> v8 - docker/build-push-action v5 -> v7 - docker/login-action v3 -> v4 - docker/setup-buildx-action v3 -> v4 Removes the Node 20 deprecation warnings and keeps CI/release builds working past the runner cutoff. * fix(ci): pin astral-sh/setup-uv to v8.1.0 (no bare v8 major tag)
59 lines
1.1 KiB
YAML
59 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'docs/**'
|
|
- '.github/workflows/claude*.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
backend:
|
|
name: Backend Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v8.1.0
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Set up Python
|
|
run: uv python install
|
|
|
|
- name: Install dependencies
|
|
run: uv sync
|
|
|
|
- name: Run tests
|
|
run: uv run pytest tests/ -v
|
|
|
|
frontend:
|
|
name: Frontend Tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
run: npm test
|