Generate rules with Python #3
Workflow file for this run
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: 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,} |