forked from maranasgroup/CatPred
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 962 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (35 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install minimal runtime dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Compile Python sources
run: |
git ls-files '*.py' | xargs -r python -m py_compile
- name: Smoke test API entrypoints
run: |
python - <<'PY'
from catpred.web.app import create_app
from api.index import app as vercel_app
api_app = create_app()
assert api_app.title == "CatPred API"
assert vercel_app is not None
print("API smoke checks passed.")
PY