Repository navigation
ci: run the existing test suites on push and PR - #4
Merged
Merged
Conversation
The repo has two real pytest suites -- FileGuard-AES-SHA256/test_main.py (15 tests) and network-sniffer/test_sniffer.py (11 tests) -- and no CI, so nothing verified them on the way in. Add .github/workflows/ci.yml: both suites on every push to main and every PR targeting it, on Python 3.10, 3.11 and 3.12. Actions are pinned by full SHA. The suites need no network and no display: tkinter is imported by FileGuard's main.py, but the tested code paths never open a window. Only the two suites that are real pytest modules are run. The files under APIGuard/tests/ (api1_bola.py, api7_ssrf.py, ...) are OWASP API Security Top 10 test definitions, not pytest modules, and are not collected. Also add a CI badge and note in the README that both suites run in CI. Suite: 15 + 11 = 26 tests, unchanged. Verified on 3.10, 3.11 and 3.12.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo has two real pytest suites —
FileGuard-AES-SHA256/test_main.py(15 tests) andnetwork-sniffer/test_sniffer.py(11 tests) — and no CI, so nothing verified them on the way in.The workflow
Both suites on every push to
mainand every PR targeting it, on Python 3.10, 3.11 and 3.12. Actions are pinned by full SHA.The suites need no network and no display:
tkinteris imported by FileGuard'smain.py, but the tested code paths never open a window.Only the two suites that are real pytest modules are run. The files under
APIGuard/tests/(api1_bola.py,api7_ssrf.py, ...) are OWASP API Security Top 10 test definitions, not pytest modules, and are not collected.Also
Measured
Verified on Python 3.10, 3.11 and 3.12. The test files themselves are unchanged.