Repository navigation
72 lines (68 loc) · 1.79 KB
/
Copy pathci.yml
File metadata and controls
72 lines (68 loc) · 1.79 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
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
python:
name: Python (ruff, mypy, pytest)
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 5
env:
DTQ_REDIS_URL: redis://localhost:6379/0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install
run: |
python -m pip install --upgrade pip
pip install ".[test,lint]"
- name: Ruff check
run: ruff check .
- name: Ruff format check
run: ruff format --check .
- name: Mypy
run: mypy packages apps
- name: Pytest
run: pytest -q
frontend:
name: Dashboard (typecheck, build)
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/dashboard
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: npm
cache-dependency-path: apps/dashboard/package-lock.json
- name: Install
run: npm ci --no-audit --no-fund
- name: Lint (tsc --noEmit)
run: npm run lint
- name: Build
run: npm run build
docker:
name: Docker (compose config, image builds)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate compose config
run: docker compose config --quiet
- name: Build images
run: docker compose build
# NOTE: this job validates configuration and that images build.
# It does not start the stack or run containers.