Update Windows workflow and try to fix MacOS

This commit is contained in:
Veronica Berglyd Olsen
2025-10-18 18:51:55 +02:00
parent af86448385
commit 40363068e3
3 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
- name: Sync UV
run: |
uv sync --no-dev --group test --group macos
uv sync --no-dev --group test --group macos --python-platform x86_64-apple-darwin
- name: Run Tests
run: |
+16 -10
View File
@@ -14,20 +14,26 @@ jobs:
testWin:
runs-on: windows-latest
steps:
- name: Python Setup
uses: actions/setup-python@v6
with:
python-version: "3.13"
architecture: x64
- name: Checkout Source
uses: actions/checkout@v5
- name: Install Dependencies (pip)
- name: Install UV and Python
uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"
- name: Sync UV
run: |
pip install -U -r requirements.txt -r tests/requirements.txt
uv sync --no-dev --group test
- name: Run Tests
run: |
python -m pytest -v --cov=novelwriter --timeout=60
$env:QT_QPA_PLATFORM=offscreen
uv run --no-sync coverage run -m pytest -v --timeout=60
uv run --no-sync coverage xml
- name: Upload to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true