This repository was archived by the owner on Jun 4, 2026. It is now read-only.
Repository navigation
105 lines (98 loc) · 2.75 KB
/
Copy pathci.yml
File metadata and controls
105 lines (98 loc) · 2.75 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
name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
backend-lint:
name: "Backend Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
- run: uv sync --frozen
working-directory: backend
- run: uv run ruff check .
working-directory: backend
- run: uv run ruff format --check .
working-directory: backend
backend-type:
name: "Backend Type Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
- run: uv sync --frozen
working-directory: backend
- run: uv run pyright
working-directory: backend
backend-test:
name: "Backend Test"
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: jarvis
POSTGRES_PASSWORD: testpass
POSTGRES_DB: jarvis_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
- run: uv sync --frozen
working-directory: backend
- run: uv run pytest tests/ -v --tb=short
working-directory: backend
env:
DATABASE_URL: "postgresql+asyncpg://jarvis:testpass@localhost:5432/jarvis_test"
REDIS_URL: "redis://localhost:6379/0"
JWT_SECRET: "ci-test-jwt-secret-not-for-production"
ENCRYPTION_KEY: "Y2ktdGVzdC1mZXJuZXQta2V5LXBhZGRpbmctamFydmk="
MINIO_ACCESS_KEY: "ci-test-minio-access"
MINIO_SECRET_KEY: "ci-test-minio-secret"
frontend-lint:
name: "Frontend Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
working-directory: frontend
- run: bun run lint
working-directory: frontend
frontend-type:
name: "Frontend Type Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
working-directory: frontend
- run: bun run type-check
working-directory: frontend