Skip to content

Commit e4a566f

Browse files
author
SDLC Bot
committed
chore(ci): add Makefile, README test docs, run ruff in CI; remove .venv_ci
1 parent 7907496 commit e4a566f

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/python-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
python -m pip install --upgrade pip
3535
pip install -r requirements.txt
3636
pip install pytest pytest-cov mypy
37+
- name: Run ruff (lint)
38+
run: |
39+
python -m pip install ruff
40+
python -m ruff check src/
3741
- name: Run unit tests with coverage
3842
run: |
3943
PYTHONPATH=. pytest --cov=src/ --cov-report=xml

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.PHONY: test lint clean
2+
3+
# Run tests using the reproducible script (creates .venv_ci)
4+
test:
5+
./scripts/run-tests.sh
6+
7+
# Run lint and static checks
8+
lint:
9+
# Fast lint with ruff and type check with mypy
10+
python3 -m pip install --upgrade pip
11+
pip install ruff mypy
12+
python3 -m ruff check src/
13+
python3 -m mypy src/ --ignore-missing-imports
14+
15+
clean:
16+
rm -rf .venv_ci

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,29 @@ Documentation](https://github.com/SoftwareDevLabs).
145145
- `README.md` – Project overview and usage
146146
- `Dockerfile` – Container build instructions
147147

148+
## Running tests
149+
150+
We provide a small helper script that creates an isolated virtualenv and runs the test suite.
151+
152+
Run the full test suite locally:
153+
154+
```bash
155+
./scripts/run-tests.sh
156+
```
157+
158+
Or run just the deepagent tests (fast):
159+
160+
```bash
161+
./scripts/run-tests.sh test/unit -k deepagent
162+
```
163+
164+
You can also use the Makefile targets:
165+
166+
```bash
167+
make test
168+
make lint
169+
```
170+
148171
---
149172

150173
## Contributing

0 commit comments

Comments
 (0)