-
Notifications
You must be signed in to change notification settings - Fork 11
67 lines (55 loc) · 1.44 KB
/
Copy pathformat.yaml
File metadata and controls
67 lines (55 loc) · 1.44 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
name: format
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- "**"
paths-ignore:
- "ui/**"
concurrency:
group: build-format-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ruff-format:
name: "Python code quality checks"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
run: uv python install 3.10
- name: Install development dependencies
working-directory: pipecat
run: uv sync --group dev
- name: Ruff formatter
id: ruff-format
working-directory: pipecat
run: uv run ruff format --diff
- name: Ruff linter (all rules)
id: ruff-check
working-directory: pipecat
run: uv run ruff check
prettier-format:
name: "TypeScript code quality checks"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
working-directory: ui
run: npm install
- name: Prettier formatter
id: prettier-format
working-directory: ui
run: npx prettier --check "src/**/*.{css,ts,tsx}"