Test Suite / test (push) Canceled after 0s
How to run tests (answers user question): Manual execution: ./run_tests.sh # Quick way with auto-configured python python -m pytest tests/unit/ -v # Direct pytest command Automated (Gitea Actions): - Tests run on every push/PR to main branch - Workflow file: .gitea/workflows/test.yml - Status visible at repo actions page CI skips PySide6-dependent GUI tests by default.
21 lines
579 B
Bash
Executable File
21 lines
579 B
Bash
Executable File
#!/bin/bash
|
|
# Run pytest tests with proper Python path
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Use full python path if in Hermes environment
|
|
if [ -f "/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python" ]; then
|
|
PYTHON="/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python"
|
|
else
|
|
PYTHON="python3"
|
|
fi
|
|
|
|
echo "Running tests with: $PYTHON"
|
|
|
|
# Run all tests except GUI-dependent ones (requires PySide6)
|
|
$PYTHON -m pytest tests/unit/ \
|
|
--ignore=tests/unit/test_updater.py \
|
|
--ignore=tests/unit/test_plugin_manager.py \
|
|
--ignore=tests/unit/test_flares.py \
|
|
"$@"
|