| 1 |
# .woodpecker.yml |
| 2 |
steps: |
| 3 |
- name: build-test |
| 4 |
image: python:3 |
| 5 |
when: |
| 6 |
- event: [push, tag, manual] |
| 7 |
commands: |
| 8 |
- ls -la |
| 9 |
- python3 --version |
| 10 |
- python3 -m pip install --upgrade pip |
| 11 |
- python3 -m pip install build twine |
| 12 |
- echo "Build the package..." |
| 13 |
- python3 -m build . |
| 14 |
- echo "Check the package metadata..." |
| 15 |
- twine check --strict dist/* |
| 16 |
- name: installation-test |
| 17 |
image: python:3 |
| 18 |
when: |
| 19 |
- event: [push, tag, manual] |
| 20 |
commands: |
| 21 |
- ls -la |
| 22 |
- cd .. |
| 23 |
- ls -la |
| 24 |
- pwd |
| 25 |
- python3 --version |
| 26 |
- python3 -m pip install --upgrade pip |
| 27 |
- echo "Install the package via pip..." |
| 28 |
- python3 -m pip --verbose install git+https://codeberg.org/a13xp0p0v/kernel-hardening-checker |
| 29 |
- python3 -m pip check |
| 30 |
- echo "Run the installed tool..." |
| 31 |
- which kernel-hardening-checker |
| 32 |
- kernel-hardening-checker |
| 33 |
- sysctl -a > /tmp/sysctls |
| 34 |
- kernel-hardening-checker -s /tmp/sysctls |