Update Linux test workflows
This commit is contained in:
@@ -23,23 +23,28 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- name: Install Packages (apt)
|
- name: Install Packages (apt)
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install libenchant-2-dev qttools5-dev-tools
|
sudo apt install libenchant-2-dev qttools5-dev-tools
|
||||||
|
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Dependencies (pip)
|
|
||||||
run: |
|
- name: Install UV
|
||||||
pip install -U -r requirements.txt -r tests/requirements.txt
|
uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
- name: Run Build Commands
|
- name: Run Build Commands
|
||||||
run: |
|
run: |
|
||||||
python pkgutils.py qtlrelease
|
uv run --group test pkgutils.py qtlrelease
|
||||||
python pkgutils.py sample
|
uv run --group test pkgutils.py sample
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
export QT_QPA_PLATFORM=offscreen
|
export QT_QPA_PLATFORM=offscreen
|
||||||
python -m pytest -v --cov=novelwriter --timeout=60
|
uv run --group test coverage -m pytest -v --timeout=60
|
||||||
|
|
||||||
- name: Upload to Codecov
|
- name: Upload to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user