Skip to content

Commit c650aa0

Browse files
authored
CI: Use MariaDB (#611)
1 parent d48c852 commit c650aa0

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

.github/workflows/tests.yaml

+17-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Test
22

33
on:
44
push:
5+
branches: ["main"]
56
pull_request:
67

78
jobs:
@@ -10,10 +11,25 @@ jobs:
1011
strategy:
1112
matrix:
1213
python-version: ["3.8", "3.9", "3.10", "3.11"]
14+
include:
15+
- python-version: "3.11"
16+
mariadb: 1
1317
steps:
14-
- name: Start MySQL
18+
- if: ${{ matrix.mariadb }}
19+
name: Start MariaDB
20+
# https://github.com/actions/runner-images/blob/9d9b3a110dfc98100cdd09cb2c957b9a768e2979/images/linux/scripts/installers/mysql.sh#L10-L13
21+
run: |
22+
docker pull mariadb:10.11
23+
docker run -d -e MARIADB_ROOT_PASSWORD=root -p 3306:3306 --rm --name mariadb mariadb:10.11
24+
sudo apt-get -y install libmariadb-dev
25+
mysql --version
26+
mysql -uroot -proot -h127.0.0.1 -e "CREATE DATABASE mysqldb_test"
27+
28+
- if: ${{ !matrix.mariadb }}
29+
name: Start MySQL
1530
run: |
1631
sudo systemctl start mysql.service
32+
mysql --version
1733
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
1834
1935
- uses: actions/checkout@v3

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ doc:
1010

1111
.PHONY: clean
1212
clean:
13-
python setup.py clean
1413
find . -name '*.pyc' -delete
1514
find . -name '__pycache__' -delete
1615
rm -rf build

ci/django-requirements.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# django-3.2.19/tests/requirements/py3.txt
2+
aiosmtpd
3+
asgiref >= 3.3.2
4+
argon2-cffi >= 16.1.0
5+
backports.zoneinfo; python_version < '3.9'
6+
bcrypt
7+
docutils
8+
geoip2
9+
jinja2 >= 2.9.2
10+
numpy
11+
Pillow >= 6.2.0
12+
# pylibmc/libmemcached can't be built on Windows.
13+
pylibmc; sys.platform != 'win32'
14+
pymemcache >= 3.4.0
15+
# RemovedInDjango41Warning.
16+
python-memcached >= 1.59
17+
pytz
18+
pywatchman; sys.platform != 'win32'
19+
PyYAML
20+
selenium
21+
sqlparse >= 0.2.2
22+
tblib >= 1.5.0
23+
tzdata
24+
colorama; sys.platform == 'win32'

0 commit comments

Comments
 (0)