chore: Upgrade Python requirements #360
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: codejail-ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| codejail_ci: | |
| name: tests | |
| runs-on: ubuntu-${{ matrix.ubuntu_version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python_version: ['3.11'] | |
| ubuntu_version: ['22.04', '24.04'] | |
| tox_env: [ "django42", "django52"] | |
| include: | |
| - tox_env: quality | |
| ubuntu_version: '24.04' | |
| python_version: '3.11' | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Parse custom apparmor profile with ABI 3.0 | |
| run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail_sandbox.bin.python-abi3 | |
| - name: Build latest code changes into CI image | |
| run: | | |
| docker build -t openedx-codejail \ | |
| --cache-to type=gha \ | |
| --cache-from type=gha \ | |
| --build-arg python_version=${{ matrix.python_version }} \ | |
| --build-arg ubuntu_version=${{ matrix.ubuntu_version }} . | |
| - name: Run container with custom apparmor profile and codejail CI image | |
| run: | | |
| docker run --name=codejail --privileged -d --security-opt apparmor=openedx_codejail_sandbox \ | |
| openedx-codejail tail -f /dev/null | |
| - name: Run Tests | |
| run: docker exec -e TOXENV=${{ matrix.tox_env }} -t codejail bash -c 'tox' |