Add --version option to show abi3audit version information #165
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint-source: | |
name: Lint Python | |
uses: trailofbits/.github/.github/workflows/[email protected] | |
with: | |
language: python | |
python-version: "3.9" | |
lint-md: | |
name: Lint Markdown | |
uses: trailofbits/.github/.github/workflows/[email protected] | |
with: | |
language: markdown | |
check-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: pyproject.toml | |
- run: python -m pip install . | |
- name: check-readme | |
run: | | |
diff \ | |
<( \ | |
awk '/@begin-abi3audit-help@/{f=1;next} /@end-abi3audit-help@/{f=0} f' \ | |
< README.md | sed '1d;$d' \ | |
) \ | |
<( \ | |
python -m abi3audit --help \ | |
) |