diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f78a58..8e3fa69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: