Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ trap 'exit 1' ERR
# Run unit tests
poetry run pytest

# Run Smoke tests
poetry run pytest test/smoke/test_smoke.py
# Run Smoke tests (fast, non-network subset)
# For the full smoke suite including network/slow tests, use:
# poetry run pytest test/smoke/test_smoke.py
poetry run pytest test/smoke/test_smoke.py -m "smoke and not network and not slow"

# Test malicious detection (should fail with exit code 1)
if poetry run python -m ossprey --dry-run-malicious --package test/test_packages/npm_simple_math/ --mode npm; then
Expand Down