Skip to content

Commit 3ffb74a

Browse files
committed
ADD Add infra required to run pytest
1 parent 59b40f0 commit 3ffb74a

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/python-app.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ jobs:
2727
run: pipx install ruff
2828
- name: Lint code with Ruff
2929
run: ruff check --output-format=github --target-version=py39
30+
- name: Install test dependencies
31+
run: pip install -r server/requirements.txt
32+
# Discover and run all files matching test_*.py or *_test.py under server/
33+
- name: Run tests
34+
run: pytest server/ -v

server/pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
DJANGO_SETTINGS_MODULE = balancer_backend.settings
3+
pythonpath = .

server/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ sentence_transformers
1818
PyMuPDF==1.24.0
1919
Pillow
2020
pytesseract
21-
anthropic
21+
anthropic
22+
pytest
23+
pytest-django

0 commit comments

Comments
 (0)