Switch CI test database to MySQL (#1417)

This commit is contained in:
Guanzhong Chen 2020-06-01 23:13:41 -04:00 committed by GitHub
parent 6ad252cbbd
commit 1b2ae721eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -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',
},
},
}

View File

@ -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