Skip to content

App tweaks

App tweaks #38

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
tags-ignore: ["v*"]
pull_request:
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.14"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies (Qt/OpenGL for PySide6)
run: sudo apt-get install -y --no-install-recommends libegl1 libgl1 libglib2.0-0
- name: Install project dependencies
run: uv sync --group dev
- name: Run basedpyright (errors)
run: |
uv run basedpyright --outputjson src/georeel \
| python3 -c "
import json, sys
d = json.load(sys.stdin)
e = d['summary']['errorCount']
w = d['summary']['warningCount']
print(f'basedpyright: {e} errors, {w} warnings')
sys.exit(1 if e > 0 else 0)
"
- name: Run tests with coverage
run: uv run pytest --cov=src/georeel --cov-report=xml --cov-report=term-missing --cov-fail-under=85
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: core