-
Notifications
You must be signed in to change notification settings - Fork 0
184 lines (154 loc) · 4.98 KB
/
Copy pathci.yaml
File metadata and controls
184 lines (154 loc) · 4.98 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
name: CI workflow
on:
pull_request:
branches:
- main
permissions:
contents: write
jobs:
path-filter:
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.changes.outputs.frontend }}
audio_transcription: ${{ steps.changes.outputs.audio_transcription }}
client: ${{ steps.changes.outputs.client }}
conversation_briefing: ${{ steps.changes.outputs.conversation_briefing }}
face_detection: ${{ steps.changes.outputs.face_detection }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
frontend:
- 'frontend/**'
audio_transcription:
- 'backend/audio_transcription/src/**'
client:
- 'backend/client/**'
conversation_briefing:
- 'backend/conversation_briefing/**'
face_detection:
- 'backend/face_detection/**'
frontend-ci:
needs: path-filter
if: ${{ needs.path-filter.outputs.frontend == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v5
with:
node-version: '>=23.6.1'
- name: Install dependencies
working-directory: frontend
run: npm install --dev
- name: Run Linting
working-directory: frontend
run: npm run lint
- name: Run tests
working-directory: frontend
run: npm run test
audio-transcription-ci:
needs: path-filter
if: ${{ needs.path-filter.outputs.audio_transcription == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.19"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install the project
run: uv sync --locked --all-extras --dev
working-directory: ./backend/audio_transcription
- name: Run Linter and Formatting
run: |
uv run ruff check .
uv run ruff format --check
working-directory: ./backend/audio_transcription
- name: Run Type Checking
run: uv run pyrefly check
working-directory: ./backend/audio_transcription
- name: Run Unit/Integration Tests
run: make test_all
working-directory: ./backend/audio_transcription
client-ci:
needs: path-filter
if: ${{ needs.path-filter.outputs.client == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: v1.25.6
cache: 'true'
- name: Download Go modules
working-directory: ./backend/client
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.6
working-directory: ./backend/client
- name: run tests
working-directory: ./backend/client/cmd
run: make test_all
conversation-briefing-ci:
needs: path-filter
if: ${{ needs.path-filter.outputs.conversation_briefing == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: v1.25.6
cache: 'true'
- name: Download Go modules
working-directory: ./backend/conversation_briefing
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.6
working-directory: ./backend/conversation_briefing
- name: run tests
working-directory: ./backend/conversation_briefing/cmd
run: make test_all
face-detection-ci:
needs: path-filter
if: ${{ needs.path-filter.outputs.face_detection == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: v1.25.6
cache: 'true'
- name: Install dlib dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-turbo8-dev pkg-config gcc g++
- name: Download Go modules
working-directory: ./backend/face_detection
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.6
working-directory: ./backend/face_detection
- name: run tests
working-directory: ./backend/face_detection/cmd
run: make test_all