-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.2 KB
/
Copy pathpytest-azurite.yml
File metadata and controls
39 lines (33 loc) · 1.2 KB
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
name: Pytest with Azurite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
basic_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; elif [ -f backend/requirements.txt ]; then pip install -r backend/requirements.txt; else echo "No requirements.txt found (skipping)"; fi
- name: Basic sanity checks (no secrets)
run: |
python -m compileall backend -q
python - <<'PY'
import json
from pathlib import Path
p = Path("backend/custom_gpt_tools/actions_openapi.json")
d = json.loads(p.read_text(encoding="utf-8"))
assert d.get("openapi"), "missing openapi version"
assert "/api/read_many_blobs" in d.get("paths", {}), "missing /api/read_many_blobs path"
catalog = Path("AGENT_FUNCTIONS_CATALOG.json")
json.loads(catalog.read_text(encoding="utf-8"))
print("OK: compileall + json validation")
PY