test: validate test #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
tutor plugins enable codejail | |
tutor images build codejail | |
- name: Run tests | |
run: | | |
tutor local run codejailservice bash -c \ | |
"/sandbox/venv/bin/python -c ' | |
import socket; | |
socket.socket()"' | |