diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c37f8f2..ba9dd7ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,13 @@ jobs: codejail_ci: name: tests runs-on: ubuntu-20.04 + strategy: + matrix: + include: + - python_version: '3.8' + docker_tag: latest + - python_version: '3.11' + docker_tag: '3.11' steps: - uses: actions/checkout@v2 @@ -24,15 +31,16 @@ jobs: uses: aws-actions/amazon-ecr-login@v1 - name: Parse custom apparmor profile - run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail_sandbox-python3.8.bin.python - + run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail_sandbox-python${{ matrix.python_version }}.bin.python + - name: Pull codejail CI image run: docker pull 257477529851.dkr.ecr.us-east-1.amazonaws.com/openedx-codejail:latest - name: Build latest code changes into CI image run: | docker build --cache-from 257477529851.dkr.ecr.us-east-1.amazonaws.com/openedx-codejail \ - -t 257477529851.dkr.ecr.us-east-1.amazonaws.com/openedx-codejail . + -t 257477529851.dkr.ecr.us-east-1.amazonaws.com/openedx-codejail \ + --build-arg python_version=${{ matrix.python_version }} . - name: Run container with custom apparmor profile and codejail CI image run: | @@ -41,7 +49,7 @@ jobs: - name: Run Non Proxy Tests run: docker exec -t codejail bash -c 'make clean && make test_no_proxy' - + - name: Run Proxy Tests run: docker exec -t codejail bash -c 'make clean && make test_proxy'