mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
CI Checks
Uses the new run_docker_tests.sh script which is self-contained and handles all dependencies and test execution within a Docker container. This ensures that the CI environment is consistent with the local devcontainer environment. Fixes an issue where the job name 'test' was considered invalid. Renamed to 'docker-tests'. Ensures that tests marked as 'feature_complete' are also excluded from the test run.
This commit is contained in:
@@ -76,7 +76,7 @@ docker exec netalertx-test-container /bin/bash -c " \
|
||||
# --- 9. Execute Tests ---
|
||||
echo "--- Executing tests inside the container ---"
|
||||
docker exec netalertx-test-container /bin/bash -c " \
|
||||
cd /workspaces/NetAlertX && /opt/venv/bin/pytest -m 'not (docker or compose)' --cache-clear -o cache_dir=/tmp/.pytest_cache; \
|
||||
cd /workspaces/NetAlertX && /opt/venv/bin/pytest -m 'not (docker or compose or feature_complete)' --cache-clear -o cache_dir=/tmp/.pytest_cache; \
|
||||
"
|
||||
|
||||
# --- 10. Final Teardown ---
|
||||
|
||||
Reference in New Issue
Block a user