From 7779baba3e03f593df6b08a31678bf8901b509fc Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Wed, 10 Jul 2024 16:02:41 -0700 Subject: [PATCH] Add Ruff to CI and bump minimal Python version to 3.10 --- .github/workflows/docs.yml | 2 +- .github/workflows/lints.yml | 11 +++++++---- .github/workflows/tests.yml | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dfa2b70..75ee6b2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: # synchronized with `.readthedocs.yml` - python-version: ["3.8"] + python-version: ["3.10"] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index 90fac34..20c8fb3 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -7,17 +7,20 @@ on: branches: [ master ] jobs: - black: + ruff: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] steps: - - uses: actions/checkout@v2 - - uses: psf/black@stable + - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 mypy: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11"] + python-version: ["3.10"] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4120881..3ab96f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 @@ -33,7 +33,7 @@ jobs: run: | pdm run py.test --cov=grunnur --cov-report=xml tests - name: Upload coverage - if: matrix.python-version == '3.11' + if: matrix.python-version == '3.10' run: | curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov