File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 60
60
test : # mypy와 직렬로 실행하게되면 시간이 너무 오래 걸려서 test와 정적 타입분석은 병렬로 실행
61
61
runs-on : ubuntu-22.04
62
62
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
+
63
70
steps :
64
71
- name : Check out the codes
65
72
uses : actions/checkout@v2
@@ -96,6 +103,17 @@ jobs:
96
103
if : steps.cache-venv.outputs.cache-hit != 'true'
97
104
run : poetry install --no-root
98
105
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
+
99
117
- name : Run tests # 커버리지로 pytest를 실행하고 결과 report를 출력한다.
100
118
run : |
101
119
poetry run coverage run -m pytest .
You can’t perform that action at this time.
0 commit comments