Files
novelWriter/.github/workflows/test_linux.yml
T
Veronica Berglyd Olsen b4c9d7c76c Fix coverage reporting
2025-10-18 17:58:59 +02:00

54 lines
1.2 KiB
YAML

name: Linux
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testLinux:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Python Setup
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Packages (apt)
run: |
sudo apt update
sudo apt install libenchant-2-dev qttools5-dev-tools
- name: Checkout Source
uses: actions/checkout@v5
- name: Install UV
uses: astral-sh/setup-uv@v6
- name: Run Build Commands
run: |
uv run --no-dev pkgutils.py qtlrelease
uv run --no-dev pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
uv run --no-dev --group test coverage run -m pytest -v --timeout=60
uv run --no-dev --group test coverage xml
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true