Skip to content

Commit

Permalink
add Github CI for waiver syntax check, fix waivers
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Jaburek <[email protected]>
  • Loading branch information
comps committed Apr 5, 2024
1 parent d1e767d commit 1b281e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sanity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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

0 comments on commit 1b281e6

Please sign in to comment.