Update Windows workflow and try to fix MacOS
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Sync UV
|
- name: Sync UV
|
||||||
run: |
|
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
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -14,20 +14,26 @@ jobs:
|
|||||||
testWin:
|
testWin:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Python Setup
|
|
||||||
uses: actions/setup-python@v6
|
|
||||||
with:
|
|
||||||
python-version: "3.13"
|
|
||||||
architecture: x64
|
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v5
|
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: |
|
run: |
|
||||||
pip install -U -r requirements.txt -r tests/requirements.txt
|
uv sync --no-dev --group test
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
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
|
- name: Upload to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
env:
|
with:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
fail_ci_if_error: true
|
||||||
|
|||||||
+1
-3
@@ -29,12 +29,10 @@ dynamic = ["version"]
|
|||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
{ include-group = "build" },
|
|
||||||
{ include-group = "docs" },
|
{ include-group = "docs" },
|
||||||
{ include-group = "test" },
|
{ include-group = "test" },
|
||||||
{ include-group = "lint" },
|
{ include-group = "lint" },
|
||||||
]
|
]
|
||||||
build = ["setuptools>=77.0.3"]
|
|
||||||
docs = [
|
docs = [
|
||||||
"docutils>=0.17.1",
|
"docutils>=0.17.1",
|
||||||
"pygments>=2.7",
|
"pygments>=2.7",
|
||||||
@@ -47,7 +45,7 @@ docs = [
|
|||||||
]
|
]
|
||||||
test = ["coverage>=7.2.0", "pytest-qt", "pytest-timeout", "pytest>=6.0.0"]
|
test = ["coverage>=7.2.0", "pytest-qt", "pytest-timeout", "pytest>=6.0.0"]
|
||||||
lint = ["isort", "pyright", "ruff"]
|
lint = ["isort", "pyright", "ruff"]
|
||||||
macos = ["pyobjc", { include-group = "build" }]
|
macos = ["pyobjc"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://novelwriter.io"
|
Homepage = "https://novelwriter.io"
|
||||||
|
|||||||
Reference in New Issue
Block a user