Skip to content

Commit

Permalink
Added checks to workflow to ensure flask server runs successfully.
Browse files Browse the repository at this point in the history
janthonysantana committed Jun 3, 2024
1 parent 13fd845 commit eaa1da4
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/server-ci-dev.yml
Original file line number Diff line number Diff line change
@@ -46,6 +46,15 @@ jobs:
level: high
confidence: high
exit_zero: true

- name: Start application
run: |
flask run &
sleep 5 # give Flask time to start
- name: Check application is running
run: |
curl localhost:5000
docker-build:
1 change: 0 additions & 1 deletion server/app.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
from routes.user import user_routes
from routes.ai import ai_routes


# Set up the app
app = Flask(__name__)
CORS(app)

0 comments on commit eaa1da4

Please sign in to comment.