Skip to content

Commit 6dddd3d

Browse files
committed
ci: add GitHub Actions workflow to run pytest; add dev extras (pytest) in pyproject; default LLM_PROVIDER=mock in CI
1 parent c1a85a2 commit 6dddd3d

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,22 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
1518
with:
1619
python-version: '3.12'
17-
- name: Install package
20+
21+
- name: Install dependencies
1822
run: |
1923
python -m pip install --upgrade pip
20-
pip install -e .[repair]
24+
pip install -e .[dev]
25+
2126
- name: Run tests
2227
env:
23-
# Force mock provider to avoid external API calls
2428
LLM_PROVIDER: mock
25-
USE_TOOL_CALLS: '0'
2629
run: |
2730
pytest -q
28-
- name: Run evals (smoke)
29-
env:
30-
LLM_PROVIDER: mock
31-
USE_TOOL_CALLS: '0'
32-
run: |
33-
python evals/run_evals.py --n 6
31+

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ include = ["micro_agent*"]
3232
repair = [
3333
"json-repair>=0.6.0",
3434
]
35+
dev = [
36+
"pytest>=7.0",
37+
"pytest-asyncio>=0.23.0",
38+
]

0 commit comments

Comments
 (0)