-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Django compat test | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Start MySQL | ||
run: | | ||
sudo systemctl start mysql.service | ||
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot -proot mysql | ||
mysql -uroot -proot -e "CREATE USER 'scott'@'%' IDENTIFIED BY 'tiger'; GRANT ALL ON *.* TO scott;" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-django-pip-1 | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
# https://www.mail-archive.com/[email protected]/msg209056.html | ||
python-version: "3.8" | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Install mysqlclient | ||
env: | ||
PIP_NO_PYTHON_VERSION_WARNING: 1 | ||
PIP_DISABLE_PIP_VERSION_CHECK: 1 | ||
run: | | ||
pip install -U pytest pytest-cov tblib | ||
pip install . | ||
# pip install mysqlclient # Use stable version | ||
- name: Run Django test | ||
env: | ||
DJANGO_VERSION: "2.2.24" | ||
run: | | ||
sudo apt-get install libmemcached-dev | ||
wget https://github.com/django/django/archive/${DJANGO_VERSION}.tar.gz | ||
tar xf ${DJANGO_VERSION}.tar.gz | ||
cp ci/test_mysql.py django-${DJANGO_VERSION}/tests/ | ||
cd django-${DJANGO_VERSION}/tests/ | ||
pip install .. | ||
pip install -r requirements/py3.txt | ||
PYTHONPATH=.. python3 ./runtests.py --settings=test_mysql |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters