Files
novelWriter/.github/workflows/test_mac.yml
T
2025-10-18 18:20:13 +02:00

50 lines
1.0 KiB
YAML

name: MacOS
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testMac:
runs-on: macos-latest
steps:
# - name: Python Setup
# uses: actions/setup-python@v6
# with:
# python-version: "3.13"
# architecture: x64
# - name: Install Packages (brew)
# run: |
# brew install enchant
- name: Install UV and Python
uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"
- name: Checkout Source
uses: actions/checkout@v5
- name: Sync UV
run: |
uv sync --no-dev --group test --group macos
- name: Run Tests
run: |
export 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
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true