Skip to content

Add support for python 3.12 #371

Add support for python 3.12

Add support for python 3.12 #371

Workflow file for this run

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', '3.12']
ubuntu_version: ['22.04', '24.04']
tox_env: [ "django42", "django52"]
include:
- tox_env: quality
ubuntu_version: '24.04'
python_version: '3.12'
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'