Skip to content

Commit eb7f9c7

Browse files
committed
ci: add github actions workflow for automated testing
1 parent dfbe21f commit eb7f9c7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.10"
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install pytest httpx fastapi pydantic-settings pandas scikit-learn datasets transformers
26+
# We install a subset of requirements to keep CI fast and avoid
27+
# heavy ML libraries like torch/bitsandbytes that require GPUs
28+
29+
- name: Run tests
30+
run: |
31+
export PYTHONPATH=$PYTHONPATH:$(pwd)
32+
pytest tests/test_data.py tests/test_api.py

0 commit comments

Comments
 (0)