Skip to content

Commit

Permalink
Add Ruff to CI and bump minimal Python version to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Jul 10, 2024
1 parent de6f541 commit 7779bab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
# synchronized with `.readthedocs.yml`
python-version: ["3.8"]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7779bab

Please sign in to comment.