Tmma 461 expand cypress tests #582
Workflow file for this run
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
name: Run Python/Django test suite | |
on: | |
push: | |
branches-ignore: | |
- last_known_good | |
- demo_stable | |
- prod_stable | |
pull_request: | |
types: [review_requested] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 # NB: There are issues in later versions of Ubuntu where application/x-wine-extension-ini replacing the expected mime type for text files in archives - these tests will need to be skipped and only run on VM based environment | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
db: | |
image: mysql:5.7 | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_ROOT_PASSWORD: 'ci-db-pswd' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python 2 support | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
python2.7 python2.7-dev python2-pip-whl | |
sudo ln -sf python2.7 /usr/bin/python | |
export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl` | |
sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools wheel | |
sudo chown -R $USER /usr/local/lib/python2.7 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
- name: Run Python 3/Django tests | |
run: bash tests/run-django-tests.sh |