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.
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
# Gitea Actions CI workflow - runs tests on every push/PR
|
|
name: Test Suite
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.14'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt 2>/dev/null || true
|
|
pip install pytest numpy psutil Pillow
|
|
|
|
- name: Run tests (skip GUI tests)
|
|
run: |
|
|
python -m pytest tests/unit/ \
|
|
--ignore=tests/unit/test_updater.py \
|
|
--ignore=tests/unit/test_plugin_manager.py \
|
|
--ignore=tests/unit/test_flares.py \
|
|
-v --tb=short
|
|
|
|
- name: Test summary
|
|
if: always()
|
|
run: |
|
|
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
|
|
python -m pytest tests/unit/ \
|
|
--ignore=tests/unit/test_updater.py \
|
|
--ignore=tests/unit/test_plugin_manager.py \
|
|
--ignore=tests/unit/test_flares.py \
|
|
--co -q 2>/dev/null | grep "test session" >> $GITHUB_STEP_SUMMARY || true
|