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.
This commit is contained in:
1 parent
4887379896
commit
57add9e337
3 files changed
+94
-12
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/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 \
|
||||
"$@"
|
||||
Reference in new issue
Block a user