mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Switch CI test database to MySQL (#1417)
This commit is contained in:
parent
6ad252cbbd
commit
1b2ae721eb
@ -7,3 +7,17 @@ CACHES = {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
|
||||
}
|
||||
}
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'dmoj',
|
||||
'USER': 'root',
|
||||
'PASSWORD': 'root',
|
||||
'HOST': 'localhost',
|
||||
'PORT': '3306',
|
||||
'OPTIONS': {
|
||||
'charset': 'utf8mb4',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -20,5 +20,7 @@ jobs:
|
||||
pip install -r requirements.txt
|
||||
pip install mysqlclient
|
||||
cp .ci.settings.py dmoj/local_settings.py
|
||||
- name: Start MySQL
|
||||
run: sudo systemctl start mysql.service
|
||||
- name: Run unit tests
|
||||
run: python manage.py test judge
|
||||
|
Loading…
Reference in New Issue
Block a user