Repository navigation
115 lines (89 loc) · 2.55 KB
/
Copy pathci.yml
File metadata and controls
115 lines (89 loc) · 2.55 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
backend:
name: Backend (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Create virtual environment
run: python3 -m venv venv
- name: Install dependencies
run: venv/bin/python3 -m pip install -r requirements-dev.txt
- name: Run backend tests
run: venv/bin/python3 -m coverage run -m unittest discover -s tests
- name: Check backend coverage
run: venv/bin/python3 -m coverage report
release-lock-windows:
name: Release Lock (Windows)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Run Windows release lock tests
run: python -m unittest discover -s tests -p "test_release_runtime_lock.py"
frontend:
name: Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
version: 10.29.2
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: "24.11.1"
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm run format:check
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm run typecheck
- name: Build frontend
run: pnpm run build:bundle
- name: Run frontend tests
run: pnpm run test:coverage
- name: Install Chromium for Playwright
run: pnpm exec playwright install --with-deps chromium
- name: Run frontend browser tests
run: pnpm run e2e