| Add tests
Some checks failed
SonarQube Code Quality Scan / SonarQube Scan (push) Failing after 2m37s

This commit is contained in:
2026-06-03 18:53:24 +03:00
parent 363ee732b4
commit 93f5239ef7
11 changed files with 1045 additions and 0 deletions

View File

@@ -18,6 +18,28 @@ jobs:
with:
fetch-depth: 0 # Required for advanced SonarQube features like blame info
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq libegl1 libxkbcommon0 libglib2.0-0t64 libgl1-mesa-glx || true
- name: Install project dependencies
run: |
python -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
.venv/bin/pip install -r requirements-dev.txt
- name: Run tests with coverage
run: |
.venv/bin/coverage run -m pytest --junitxml=pytest-report.xml tests/
.venv/bin/coverage xml
- name: Run SonarQube Scanner
uses: sonarsource/sonarqube-scan-action@v4
env: