Skip to content

Commit af3d2dd

Browse files
committed
testing endpoint
1 parent 8c539b2 commit af3d2dd

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ jobs:
5757
run: python elastic_script.py
5858

5959
- name: Run FastAPI and test endpoint
60+
env:
61+
CLOUD_ID: ${{ secrets.CLOUD_ID }}
62+
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
6063
run: |
61-
python main.py
62-
sleep 50
63-
curl -X GET "http://127.0.0.1:8000/events"
64+
uvicorn main:app --host 127.0.0.1 --port 8000 &
65+
sleep 10
66+
curl http://127.0.0.1:8000/events
67+
6468

0 commit comments

Comments
 (0)