File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 6060 test : # mypy와 직렬로 실행하게되면 시간이 너무 오래 걸려서 test와 정적 타입분석은 병렬로 실행
6161 runs-on : ubuntu-22.04
6262
63+ env :
64+ MYSQL_HOST : 127.0.0.1
65+ MYSQL_PORT : 3306
66+ MYSQL_USER : root
67+ MYSQL_PASSWORD : 1234
68+ MYSQL_DATABASE : when2meet
69+
6370 steps :
6471 - name : Check out the codes
6572 uses : actions/checkout@v2
@@ -96,6 +103,17 @@ jobs:
96103 if : steps.cache-venv.outputs.cache-hit != 'true'
97104 run : poetry install --no-root
98105
106+ - name : Set timezone to KST
107+ run : |
108+ sudo rm /etc/localtime
109+ sudo ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
110+
111+ - name : Start MySQL
112+ run : |
113+ sudo systemctl start mysql
114+ mysql -e "use mysql; FLUSH PRIVILEGES; ALTER USER '${{ env.MYSQL_USER }}'@'localhost' IDENTIFIED BY '${{ env.MYSQL_PASSWORD }}';" -uroot -proot
115+ mysql -e 'CREATE DATABASE ${{ env.MYSQL_DATABASE }};' -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }}
116+
99117 - name : Run tests # 커버리지로 pytest를 실행하고 결과 report를 출력한다.
100118 run : |
101119 poetry run coverage run -m pytest .
You can’t perform that action at this time.
0 commit comments