Skip to content

Commit

Permalink
fix: Run database server
Browse files Browse the repository at this point in the history
  • Loading branch information
soulee-dev committed Oct 15, 2023
1 parent c5be837 commit f38cea8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ jobs:
with:
python-version: '3.x'

- name: Run database server in docker
run: |
docker compose create
docker compose start
echo "wait mysql server"
while :
do
if mysql -h 127.0.0.1 --user=root --execute "SELECT version();" 2>&1 >/dev/null && mysql -h 127.0.0.1 --port=3307 --user=root --execute "SELECT version();" 2>&1 >/dev/null; then
break
fi
sleep 1
done
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -24,7 +38,7 @@ jobs:
- name: Run coverage
run: |
coverage run -m unittest discover
coverage run -m pytest
coverage html
- run: smokeshow upload htmlcov
Expand Down

0 comments on commit f38cea8

Please sign in to comment.