Skip to content

Commit

Permalink
testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nwanoch authored Jul 20, 2024
1 parent c914e0a commit e4bfff5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ jobs:
run: cp .env.sample .env

- name: Run app
run: |
nohup python3 main.py
if [ $? -eq 0 ]; then
run: |
python3 main.py &
pid=$!
sleep 10
if ps -p $pid > /dev/null; then
echo "main.py started successfully"
kill $pid
else
echo "main.py failed to start"
exit 1
fi
# - name: Run migrations
# run: |
# activate
Expand Down

0 comments on commit e4bfff5

Please sign in to comment.