Skip to content

temp

temp #14

Workflow file for this run

name: Test AA Profile
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: requirements/dev.txt
- name: Install plugin
run: |
pip install "git+https://github.com/overhangio/tutor@sumac"
pip install .
- name: build codejail image
run: |
tutor config save --set "CODEJAIL_DOCKER_IMAGE=docker.io/ednxops/codejailservice:19.0.0-aa-testing"
tutor plugins enable codejail
tutor images build codejail
- name: Load AA Profile
run: |
tutor local do init -l codejail
- name: Run tests
run: |
tutor local run codejailservice bash -c "/sandbox/venv/bin/python -c 'import socket;socket.socket()'"
tutor local run codejailservice bash -c "/sandbox/venv/bin/python -c 'open(\"/etc/passwd\").read()'"