Repository navigation
80 lines (61 loc) · 1.83 KB
/
Copy pathci.yml
File metadata and controls
80 lines (61 loc) · 1.83 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
name: Lint and Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v10.0.0
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Lint
run: uv run --locked --group dev ruff check src tests
- name: Check formatting
run: uv run --locked --group dev ruff format --check src tests
- name: Run tests
run: uv run --locked --group dev pytest tests/ -W error --cov=argus --cov-report=term-missing --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v7
with:
files: coverage.xml
frontend:
name: Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: "22"
- name: Enable corepack
run: corepack enable
- name: Install dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile
- name: Lint
working-directory: frontend
run: pnpm lint
# Scoped to the "unit" vitest project only — the Storybook/Playwright
# browser-based component tests require installing a browser and are
# deliberately left as a local-only check for now.
- name: Test
working-directory: frontend
run: pnpm test:coverage
- name: Upload coverage report
uses: codecov/codecov-action@v7
with:
files: frontend/coverage/lcov.info
flags: frontend
- name: Build
working-directory: frontend
run: pnpm build