Add django52 support #250
Workflow file for this run
This file contains hidden or 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-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['py311', 'py312'] | |
| env-name: ['django42', 'quality'] | |
| db-version: ['mysql80'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Start container | |
| run: | | |
| docker compose -f .github/docker-compose-ci.yml up -d | |
| - name: Setup Python ${{ matrix.python-version }} inside container | |
| run: | | |
| PY_VER="${{ matrix.python-version == 'py311' && '3.11' || '3.12' }}" | |
| docker exec xqueue bash -c " | |
| apt update && | |
| apt install -y software-properties-common && | |
| add-apt-repository ppa:deadsnakes/ppa -y && | |
| apt install -y python$PY_VER python$PY_VER-dev python$PY_VER-distutils && | |
| update-alternatives --install /usr/bin/python3 python3 /usr/bin/python$PY_VER 1 && | |
| curl -sS https://bootstrap.pypa.io/get-pip.py | python3 | |
| " | |
| - name: Install test dependencies and run tests | |
| env: | |
| TOXENV: ${{ matrix.python-version }}-${{ matrix.env-name }} | |
| 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}" |