From db10e957bfa866365741582b0cdda0a737a418ba Mon Sep 17 00:00:00 2001 From: nazarli-shabnam Date: Sat, 25 Jul 2026 13:19:01 +0400 Subject: [PATCH 1/2] ci: run tests on Windows in addition to Ubuntu git.py/run.py have Windows-specific UTF-8 codepage handling and cli.py has PowerShell quoting logic, none of which was exercised by CI (ubuntu-latest only). Add windows-latest to the test job's OS matrix alongside the existing Python version matrix. Closes #19 --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 653a008..52a3146 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,12 @@ concurrency: jobs: test: - name: Test (Python ${{ matrix.python-version }}) - runs-on: ubuntu-latest + name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }}) + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + os: [ubuntu-latest, windows-latest] python-version: ["3.10", "3.11", "3.12"] steps: From b9ea7697e17c86e51c78eaefb81d1121591c7a65 Mon Sep 17 00:00:00 2001 From: nazarli-shabnam Date: Sat, 25 Jul 2026 14:20:25 +0400 Subject: [PATCH 2/2] ci: pin ruff to 0.12.3 to stop lint from drifting with upstream releases The lint job's `pip install ruff` had no version pin, decoupled from pyproject.toml's own ruff>=0.8.0. A newer ruff release enables new default-on lint rules, breaking CI on pre-existing code unrelated to this change. Pin to the last known-good version in both places. --- .github/workflows/ci.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52a3146..e69f6e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: cache: "pip" - name: Install Ruff - run: pip install ruff + run: pip install ruff==0.12.3 - name: Ruff check run: ruff check . diff --git a/pyproject.toml b/pyproject.toml index 496a42a..bb37a87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest>=8.0.0", - "ruff>=0.8.0", + "ruff==0.12.3", ] [project.scripts]