Skip to content

add Github CI for waiver syntax check, fix waivers #4

add Github CI for waiver syntax check, fix waivers

add Github CI for waiver syntax check, fix waivers #4

Workflow file for this run

name: Sanity self-tests
on:
pull_request:
jobs:
waivers-syntax-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Contest deps
run: sudo apt-get -y install python-rpm
- name: Collect waivers
run: |
python3 <<'EOF'
import sys
from lib import waive
try:
list(waive.collect_waivers())
sys.exit(0)
except waive.WaiveParseError as e:
print(str(e))
sys.exit(1)
EOF