Skip to content

Commit

Permalink
fixup! test: run tests for python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
MoisesGSalas committed Nov 21, 2024
1 parent e527cca commit c9fbbf6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
fail-fast: false
matrix:
python_version: ['3.11', '3.12']
ubuntu_version: ['20.04','22.04','24.04']
include:
- ubuntu_version: '20.04'
os: "ubuntu-20.04"
Expand All @@ -25,11 +26,11 @@ jobs:
- uses: actions/checkout@v4
- name: Parse custom apparmor profile with default feature ABI
if: ${{ matrix.ubuntu_version == '20.04' }}
run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail_sandbox-python3.bin.python-default-abi
run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail-sandbox-venv.bin.python-default-abi

- name: Parse custom apparmor profile with ABI 3.0
if: ${{ matrix.ubuntu_version != '20.04' }}
run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail_sandbox-python3.bin.python-abi3
run: sudo apparmor_parser -r -W apparmor-profiles/home.sandbox.codejail-sandbox-venv.bin.python-abi3

- name: Build latest code changes into CI image
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
abi <abi/3.0>,
#include <tunables/global>
profile apparmor_profile /home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/bin/python {
profile apparmor_profile /home/sandbox/codejail-sandbox-venv/bin/python {
#include <abstractions/base>
#include <abstractions/python>

Expand Down Expand Up @@ -42,7 +42,7 @@ profile apparmor_profile /home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0
# Include additions to the abstraction
include if exists <abstractions/python.d>

/home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/** mr,
/home/sandbox/codejail-sandbox-venv/** mr,
/tmp/codejail-*/ rix,
/tmp/codejail-*/** wrix,

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <tunables/global>
profile apparmor_profile /home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/bin/python {
profile apparmor_profile /home/sandbox/codejail-sandbox-venv/bin/python {
#include <abstractions/base>
#include <abstractions/python>

Expand Down Expand Up @@ -41,7 +41,7 @@ profile apparmor_profile /home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0
# Include additions to the abstraction
include if exists <abstractions/python.d>

/home/sandbox/codejail_sandbox-python{3.[0-9],3.[1-9][0-9]}/** mr,
/home/sandbox/codejail-sandbox-venv/** mr,
/tmp/codejail-*/ rix,
/tmp/codejail-*/** wrix,

Expand Down

0 comments on commit c9fbbf6

Please sign in to comment.