Files
novelWriter/.github/workflows/test_linux.yml
T
Veronica Berglyd Olsen 10193520a4 Update Linux test workflows
2025-10-18 17:46:47 +02:00

52 lines
1.1 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 --group test pkgutils.py qtlrelease
uv run --group test pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
uv run --group test coverage -m pytest -v --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}