-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 805 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (33 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- uses: actions/setup-node@v7
with:
node-version: "22"
cache: npm
cache-dependency-path: ui/package-lock.json
- name: Python tests
run: |
python -m pip install -e ".[dev]"
python -m playwright install chromium
pytest
- name: UI tests
working-directory: ui
run: |
npm install
npm test
npm run build
- name: Desktop unit tests
run: node --test desktop/backend.test.mjs desktop/urls.test.mjs