Skip to content

Commit 0c2fa58

Browse files
ci: lint+test workflow and Docker skeleton
1 parent 5fa89f5 commit 0c2fa58

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
cache: pip
20+
21+
- name: Install (core + dev)
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e ".[dev]"
25+
26+
- name: Lint (ruff)
27+
run: ruff check src tests
28+
29+
- name: Test (pytest)
30+
run: pytest --cov=aegis --cov-report=term-missing

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# RAG query API image. Geo + AI extras are layered in later phases.
2+
FROM python:3.11-slim
3+
4+
ENV PYTHONUNBUFFERED=1 \
5+
PYTHONDONTWRITEBYTECODE=1
6+
7+
WORKDIR /app
8+
9+
COPY pyproject.toml README.md ./
10+
COPY src ./src
11+
12+
RUN pip install --no-cache-dir -e ".[serve]"
13+
14+
# Placeholder until the RAG query service lands (roadmap phase 11).
15+
CMD ["python", "-c", "import aegis; print('aegis', aegis.__version__)"]

0 commit comments

Comments
 (0)