From 2807b7a61ffa96586d5aeef0061a5613dda3cac5 Mon Sep 17 00:00:00 2001 From: CoderDeltaLAN Date: Tue, 9 Sep 2025 20:06:57 +0100 Subject: [PATCH 1/2] ci: full matrix (3.11/3.12, ubuntu/windows) + ruff + black + pytest + mypy --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0081e7..fc7c4db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,24 @@ concurrency: cancel-in-progress: true jobs: - noop: + python: if: ${{ (github.event_name == 'push' && startsWith(github.ref,'refs/heads/main')) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name,'ready')) }} - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + python-version: ['3.11','3.12'] + runs-on: ${{ matrix.os }} + env: + PYTHONPATH: src steps: - uses: actions/checkout@v4 - - run: echo "CI OK" + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix['python-version'] }} + - uses: abatilo/actions-poetry@v3 + - run: poetry install --no-interaction + - run: poetry run ruff check . + - run: poetry run ruff format --check . + - run: poetry run black --check . + - run: PYTHONPATH=src poetry run pytest -q + - run: poetry run mypy . From 4811ad19478a99cac35a850fd36f4365b9c48139 Mon Sep 17 00:00:00 2001 From: CoderDeltaLAN Date: Tue, 9 Sep 2025 20:15:52 +0100 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20linux-only=20(ubuntu,=20py311/py312)?= =?UTF-8?q?=20=E2=80=94=20drop=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc7c4db..ef6a2ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,22 +15,19 @@ concurrency: jobs: python: if: ${{ (github.event_name == 'push' && startsWith(github.ref,'refs/heads/main')) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name,'ready')) }} + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] python-version: ['3.11','3.12'] - runs-on: ${{ matrix.os }} - env: - PYTHONPATH: src steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: ${{ matrix['python-version'] }} - - uses: abatilo/actions-poetry@v3 - - run: poetry install --no-interaction - - run: poetry run ruff check . - - run: poetry run ruff format --check . - - run: poetry run black --check . - - run: PYTHONPATH=src poetry run pytest -q - - run: poetry run mypy . + python-version: ${{ matrix.python-version }} + - run: python -m pip install -U pip + - run: pip install ruff black pytest mypy + - run: ruff check . + - run: black --check . + - run: pytest -q + - run: mypy .