Add CI test script and update workflow

This commit is contained in:
thePR0M3TH3AN
2025-07-16 15:57:33 -04:00
parent ae9e6ba0d4
commit b88a93df29
2 changed files with 20 additions and 3 deletions

12
scripts/run_ci_tests.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eo pipefail
timeout 15m pytest -vv ${STRESS_ARGS} \
--cov=src --cov-report=xml --cov-report=term-missing \
--cov-fail-under=20 src/tests 2>&1 | tee pytest.log
status=${PIPESTATUS[0]}
if [[ $status -eq 124 ]]; then
echo "::error::Tests exceeded 15-minute limit"
tail -n 20 pytest.log
exit 1
fi
exit $status