File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed
Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ name : SDK Integration Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ sdk-integration :
11+ runs-on : ubuntu-latest
12+
13+ services :
14+ postgres :
15+ image : postgres:15-alpine
16+ env :
17+ POSTGRES_DB : cueapi_test
18+ POSTGRES_USER : runner
19+ POSTGRES_PASSWORD : " "
20+ POSTGRES_HOST_AUTH_METHOD : trust
21+ ports :
22+ - 5432:5432
23+ options : >-
24+ --health-cmd pg_isready
25+ --health-interval 2s
26+ --health-timeout 3s
27+ --health-retries 10
28+
29+ redis :
30+ image : redis:7-alpine
31+ ports :
32+ - 6379:6379
33+ options : >-
34+ --health-cmd "redis-cli ping"
35+ --health-interval 2s
36+ --health-timeout 3s
37+ --health-retries 10
38+
39+ steps :
40+ - name : Checkout cueapi-python SDK
41+ uses : actions/checkout@v4
42+
43+ - name : Checkout cueapi-core
44+ uses : actions/checkout@v4
45+ with :
46+ repository : govindkavaturi-art/cueapi-core
47+ path : cueapi-core
48+ token : ${{ secrets.GITHUB_TOKEN }}
49+
50+ - name : Set up Python 3.12
51+ uses : actions/setup-python@v5
52+ with :
53+ python-version : " 3.12"
54+
55+ - name : Install cueapi-core dependencies
56+ run : pip install -r cueapi-core/requirements.txt
57+
58+ - name : Install cueapi-python SDK (editable)
59+ run : pip install -e .
60+
61+ - name : Copy SDK integration test into cueapi-core test dir
62+ run : cp cueapi-core/tests/test_sdk_integration.py /tmp/test_sdk_integration.py
63+
64+ - name : Run SDK integration tests (cross-layer)
65+ env :
66+ DATABASE_URL : postgresql+asyncpg://runner@localhost:5432/cueapi_test
67+ REDIS_URL : redis://localhost:6379
68+ SESSION_SECRET : test-session-secret-32-chars-minimum!!
69+ ENV : test
70+ RESEND_API_KEY : " "
71+ working-directory : cueapi-core
72+ run : pytest tests/test_sdk_integration.py -v --tb=short
You can’t perform that action at this time.
0 commit comments