Merge pull request #900 from openedx/zshkoor/django42-support #149
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
tox-env: [quality, django32, django42] | |
python-version: [3.8] | |
db-version: ['mysql57', 'mysql80'] | |
# excluding mysql5.7 with Django 4.2 since Django 4.2 has | |
# dropped support for MySQL<8 | |
exclude: | |
- tox-env: 'django42' | |
db-version: 'mysql57' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start container | |
run: | | |
docker-compose -f .github/docker-compose-ci.yml up -d | |
- name: Install test dependencies and run tests | |
env: | |
TOXENV: ${{ matrix.tox-env }} | |
run: | | |
docker exec xqueue bash -c "cd /edx/app/xqueue/xqueue/; pip3 install -r requirements/ci.txt" | |
docker exec xqueue bash -c "cd /edx/app/xqueue/xqueue/ && DB_HOST=${{ matrix.db-version }} tox -e ${TOXENV}" |