Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Python CI

on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install flake8 pytest

- name: Lint with flake8
run: |
# Fail hard on syntax/undefined names
flake8 . --select=E9,F63,F7,F82 --show-source --statistics
# Style checks (non-blocking if you prefer exit-zero, but rubric says “pass without errors”)
flake8 .

- name: Test with pytest
run: |
pytest -v
31 changes: 0 additions & 31 deletions .github/workflows/manual.yml

This file was deleted.

14 changes: 8 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pandas==2.2.2
scikit-learn==1.5.1
pytest==8.3.2
fastapi==0.110.3
uvicorn==0.30.1
pydantic==2.7.1
scikit-learn==1.3.2
pandas==2.0.3
numpy==1.24.4
requests==2.32.3
fastapi==0.112.0
uvicorn==0.30.5
gunicorn==22.0.0
pytest==8.2.1
flake8==7.0.0
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 100
extend-ignore = E203, W503
exclude = .git, __pycache__, .venv, venv, build, dist