mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
CI: Use MariaDB (#611)
This commit is contained in:
18
.github/workflows/tests.yaml
vendored
18
.github/workflows/tests.yaml
vendored
@@ -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
|
||||
|
||||
1
Makefile
1
Makefile
@@ -10,7 +10,6 @@ doc:
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
python setup.py clean
|
||||
find . -name '*.pyc' -delete
|
||||
find . -name '__pycache__' -delete
|
||||
rm -rf build
|
||||
|
||||
24
ci/django-requirements.txt
Normal file
24
ci/django-requirements.txt
Normal 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'
|
||||
Reference in New Issue
Block a user