1 parent 8c539b2 commit af3d2ddCopy full SHA for af3d2dd
1 file changed
.github/workflows/build.yml
@@ -57,8 +57,12 @@ jobs:
57
run: python elastic_script.py
58
59
- name: Run FastAPI and test endpoint
60
+ env:
61
+ CLOUD_ID: ${{ secrets.CLOUD_ID }}
62
+ ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
63
run: |
- python main.py
- sleep 50
- 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
+
68
0 commit comments