Files
AnabasisChatRemove/.gitea/workflows/ci.yml
T
benya 00304c1510
Desktop CI / tests (push) Failing after 22s
Install Qt OpenGL runtime in Linux workflows
2026-09-25 14:07:55 +03:00

46 lines
1.2 KiB
YAML

name: Desktop CI
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://git.daemonlord.ru/actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: https://git.daemonlord.ru/actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Qt runtime libraries
run: |
if [ "$(id -u)" -eq 0 ]; then
apt-get update && apt-get install -y libgl1
else
sudo apt-get update && sudo apt-get install -y libgl1
fi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Validate syntax
run: |
python -m py_compile app_version.py main.py build.py updater_gui.py tests/test_auto_update_service.py tests/test_chat_actions.py tests/test_main_contracts.py tests/test_token_store.py tests/test_update_reentry_runtime.py tests/test_update_service.py tests/test_updater_gui.py
- name: Run tests
env:
QT_QPA_PLATFORM: offscreen
run: |
python -m unittest discover -s tests -p "test_*.py" -v