Skip to content

Generate rules with Python #3

Generate rules with Python

Generate rules with Python #3

Workflow file for this run

name: Continuous integration
on: [push, pull_request]
jobs:
check:
name: Run checks
runs-on: ubuntu-latest
container: python:3.11
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m venv venv
. venv/bin/activate
pip install pyright ruff
- name: Run checks
run: source venv/bin/activate && make check
validate:
name: Validate rules
runs-on: ubuntu-latest
container: python:3.11
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate rules
run: |
cp 41-nitrokey.rules{,.old}
make generate
diff 41-nitrokey.rules{.old,}