Repository navigation
111 lines (88 loc) · 2.41 KB
/
Copy pathci.yml
File metadata and controls
111 lines (88 loc) · 2.41 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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
backend:
name: backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.12'
enable-cache: true
- name: Install Python dependencies
run: uv sync --frozen
- name: Install coverage reporter
run: uv pip install pytest-cov
- name: Run backend tests
run: >
uv run pytest tests/backend
-m "not known_failing and not live" -k "not TestDockerSandbox"
--cov=data_formulator
--cov-report=term
--strict-markers
-q
frontend:
name: frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Node.js 22
uses: actions/setup-node@v7
with:
node-version: 22
cache: yarn
- name: Install frontend dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: Typecheck
run: yarn typecheck
- name: Lint
run: yarn lint:check
- name: Unit tests
run: yarn test
supply-chain:
name: supply-chain
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Node.js 22
uses: actions/setup-node@v7
with:
node-version: 22
cache: yarn
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: '3.12'
enable-cache: true
- name: Install frontend dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: Export locked Python requirements
run: uv export --frozen --no-dev --no-hashes -o requirements-ci.txt
- name: Python audit
run: uvx pip-audit -r requirements-ci.txt
- name: JavaScript audit
run: yarn audit --level high
- name: Trivy filesystem scan
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: fs
scan-ref: .
severity: HIGH,CRITICAL
exit-code: '0'
- name: Generate SBOM
uses: anchore/sbom-action@v0
with:
path: .
format: spdx-json
artifact-name: datly-sbom.spdx.json