Skip to content

Commit

Permalink
temp: Test with the newer python version as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
feanil committed Apr 24, 2024
1 parent bdd2f58 commit 17fdabd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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'

Expand Down

0 comments on commit 17fdabd

Please sign in to comment.