Skip to content

Commit

Permalink
ci: Provide a workflow verifying an unprotected python script
Browse files Browse the repository at this point in the history
emits 'hello voraus'.

This script will be protected later and the workflow altered to ensure it does not emit
without an AxProtector user runtime being present.
  • Loading branch information
AiyionPrime committed Nov 5, 2024
1 parent 0532a1b commit 727bc8a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ jobs:
uses: ./.github/workflows/ci_ubuntu_verify_repo.yml
ubuntu_verify_installation:
uses: ./.github/workflows/ci_ubuntu_verify_installation.yml
ubuntu_verify_protected_python:
uses: ./.github/workflows/ci_ubuntu_verify_protected_python.yml
14 changes: 14 additions & 0 deletions .github/workflows/ci_ubuntu_verify_protected_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI ubuntu verify protected python
'on':
workflow_call: null
jobs:
python_script_is_protected:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Verify the unprotected script emits "hello voraus"
run: ./resources/greeting.py | grep -q "hello voraus"
11 changes: 11 additions & 0 deletions resources/greeting.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
"""A executable module containing a greeter to be protected by AxProtector."""


def greet_voraus() -> None:
"""Greet voraus briefly."""
print("hello voraus")


if __name__ == "__main__":
greet_voraus()

0 comments on commit 727bc8a

Please sign in to comment.