Skip to content

Commit

Permalink
fix: raise speed of unittest in actions [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
IMBlues committed Jan 21, 2022
1 parent b5cc4de commit 043cbec
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
DB_DATABASE: bk_user_api_test
DB_USER: root
DB_PASSWORD: root
DB_PORT: 3306

steps:
- uses: actions/checkout@v2
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- uses: samin/[email protected]
with:
mysql version: '5.7'
mysql database: ${{ env.DB_DATABASE }}
mysql root password: ${{ env.DB_PASSWORD }}
mysql user: ${{ env.DB_USER }}
mysql password: ${{ env.DB_PASSWORD }}
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -51,7 +56,7 @@ jobs:
DB_USER: ${{ env.DB_USER }}
DB_PASSWORD: ${{ env.DB_PASSWORD }}
DB_HOST: "127.0.0.1"
DB_PORT: "3306"
DB_PORT: ${{ env.DB_PORT }}
run: |
make link
cd src/api
Expand Down

0 comments on commit 043cbec

Please sign in to comment.