-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.41 KB
/
Copy pathci.yml
File metadata and controls
53 lines (40 loc) · 1.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
name: CI
on:
push:
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install root development dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install agent service dependencies
run: |
pip install -r agent_service/requirements.txt
- name: Ruff correctness check
run: ruff check . --select F821
- name: Tests
env:
PYTHONPATH: .
run: python -m pytest -q
- name: Quality gate
run: python portfolio_quality/quality_gate.py .
# The deterministic evaluator is a reusable benchmark harness and requires
# explicit --source/--target arguments. CI does not have a checked-in
# benchmark pair, so it is intentionally not invoked as a unit test here.
- name: Compile check
run: python -m compileall -q agent_service streamlit_ui evaluation portfolio_quality tests
- name: Validate Docker Compose
run: docker compose config
- name: Build agent image
run: docker build -t ai-code-modernization-api:ci agent_service
- name: Build UI image
run: docker build -t ai-code-modernization-ui:ci streamlit_ui