Skip to content

Commit

Permalink
Disable tty
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman authored Mar 12, 2021
1 parent 6d104e0 commit f019c21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ jobs:
run: |
set +e
for i in {0..60}; do
docker-compose exec chris_store_dev_db mysqladmin -uroot -prootp status
docker-compose exec -T chris_store_dev_db mysqladmin -uroot -prootp status 2> /dev/null
if [ "$?" = "0" ]; then
dbup=y
break
fi
sleep 2
echo .
done
if [ "$dbup" != "y" ]; then
echo "::error ::Timed out waiting for MySQL database."
exit 1
fi
- name: Prepare MySQL for tests
run: docker-compose exec chris_store_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
run: docker-compose exec -T chris_store_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
- name: Run all tests
run: docker-compose exec chris_store_dev python manage.py test
run: docker-compose exec -T chris_store_dev python manage.py test
- run: docker-compose down -v

build:
Expand Down

0 comments on commit f019c21

Please sign in to comment.