From e21d94446111d4f946483d8c815d750349e39d00 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 18 Oct 2025 23:23:46 +0200 Subject: [PATCH] Fix mac workflow and update linting job --- .github/workflows/syntax.yml | 31 ++++++++++++++++++------------- .github/workflows/test_mac.yml | 4 ++++ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/syntax.yml b/.github/workflows/syntax.yml index d91c58fd..f3d723f9 100644 --- a/.github/workflows/syntax.yml +++ b/.github/workflows/syntax.yml @@ -14,24 +14,29 @@ jobs: checkSyntax: runs-on: ubuntu-latest steps: - - name: Python Setup - uses: actions/setup-python@v6 - with: - python-version: 3 - architecture: x64 - name: Checkout Source uses: actions/checkout@v5 - - name: Install Dependencies - run: pip install -r requirements.txt -r requirements-dev.txt + + - name: Install UV and Python + uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + + - name: Sync UV + run: | + uv sync --no-dev --group lint + - name: Ruff Check run: | - ruff --version - ruff check + uv run --no-sync ruff --version + uv run --no-sync ruff check + - name: Pyright Check run: | - pyright --version - pyright + uv run --no-sync pyright --version + uv run --no-sync pyright + - name: Isort Check run: | - isort --version - isort --check . + uv run --no-sync isort --version + uv run --no-sync isort --check . diff --git a/.github/workflows/test_mac.yml b/.github/workflows/test_mac.yml index 5d24b3c9..d191ba4b 100644 --- a/.github/workflows/test_mac.yml +++ b/.github/workflows/test_mac.yml @@ -17,6 +17,10 @@ jobs: - name: Checkout Source uses: actions/checkout@v5 + - name: Install System Packages + run: | + brew install enchant + - name: Install UV and Python uses: astral-sh/setup-uv@v6 with: