CI: Use MariaDB (#611)

This commit is contained in:
Inada Naoki
2023-05-21 02:03:59 +09:00
committed by GitHub
parent d48c8524cb
commit c650aa0d4f
3 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ name: Test
on:
push:
branches: ["main"]
pull_request:
jobs:
@@ -10,10 +11,25 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
include:
- python-version: "3.11"
mariadb: 1
steps:
- name: Start MySQL
- if: ${{ matrix.mariadb }}
name: Start MariaDB
# https://github.com/actions/runner-images/blob/9d9b3a110dfc98100cdd09cb2c957b9a768e2979/images/linux/scripts/installers/mysql.sh#L10-L13
run: |
docker pull mariadb:10.11
docker run -d -e MARIADB_ROOT_PASSWORD=root -p 3306:3306 --rm --name mariadb mariadb:10.11
sudo apt-get -y install libmariadb-dev
mysql --version
mysql -uroot -proot -h127.0.0.1 -e "CREATE DATABASE mysqldb_test"
- if: ${{ !matrix.mariadb }}
name: Start MySQL
run: |
sudo systemctl start mysql.service
mysql --version
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
- uses: actions/checkout@v3

View File

@@ -10,7 +10,6 @@ doc:
.PHONY: clean
clean:
python setup.py clean
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm -rf build

View File

@@ -0,0 +1,24 @@
# django-3.2.19/tests/requirements/py3.txt
aiosmtpd
asgiref >= 3.3.2
argon2-cffi >= 16.1.0
backports.zoneinfo; python_version < '3.9'
bcrypt
docutils
geoip2
jinja2 >= 2.9.2
numpy
Pillow >= 6.2.0
# pylibmc/libmemcached can't be built on Windows.
pylibmc; sys.platform != 'win32'
pymemcache >= 3.4.0
# RemovedInDjango41Warning.
python-memcached >= 1.59
pytz
pywatchman; sys.platform != 'win32'
PyYAML
selenium
sqlparse >= 0.2.2
tblib >= 1.5.0
tzdata
colorama; sys.platform == 'win32'