Skip to content

Commit 4dc6209

Browse files
authored
Merge pull request #1 from Sanjays2402/feat/modernize-app
Modernize app for current TensorFlow, fix broken UI, add tests + project hygiene
2 parents db83483 + 88744f7 commit 4dc6209

11 files changed

Lines changed: 569 additions & 419 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, "feat/**", "fix/**"]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
20+
- name: Install lightweight deps (no TensorFlow in CI)
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install flask numpy Pillow pytest
24+
25+
- name: Byte-compile sources
26+
run: python -m compileall app.py
27+
28+
- name: Run smoke tests (TensorFlow mocked)
29+
env:
30+
PYTHONPATH: .
31+
run: pytest -q

0 commit comments

Comments
 (0)