From 2c152d4c695f5b19c23f22159852f8f0ab8576db Mon Sep 17 00:00:00 2001 From: mrbean-bremen Date: Mon, 24 Feb 2025 21:02:13 +0100 Subject: [PATCH] Replace ubuntu-20.04 with 22.04 in CI (#177) - ubuntu-20.04 is no longer supported, ubuntu-latest is now 24.04 - fix workflow syntax - fix ruff syntax I had noticed that most of the tests fail because they can't find a runner (my PR was merged, thanks for that!). --- .github/workflows/ci.yml | 8 +++++--- Makefile | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0c0a5b..aa91c92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,15 +4,17 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04, ubuntu-latest, macos-latest + runs-on: ${{ matrix.os }} + env: + PIP_DISABLE_PIP_VERSION_CHECK: 1 strategy: matrix: + os: [ubuntu-22.04, ubuntu-latest, macos-latest] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] - steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: make install diff --git a/Makefile b/Makefile index 04be961..d4ce561 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ test_deps: python -m pip install .[test] lint: - ruff src + ruff check src mypy --install-types --non-interactive --check-untyped-defs src test: