Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test

on:
push:
branches: ["main"]
pull_request:

jobs:
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ doc:

.PHONY: clean
clean:
python setup.py clean
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm -rf build
Expand Down
24 changes: 24 additions & 0 deletions ci/django-requirements.txt
Original file line number Diff line number Diff line change
@@ -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'