Skip to content

Commit

Permalink
chore: Update CI configuration to use latest version of Ubuntu and Py…
Browse files Browse the repository at this point in the history
…thon
  • Loading branch information
bart6114 committed Sep 10, 2024
1 parent 7ebdbf2 commit 201cb6e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/python-basic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ on:

jobs:
linter_and_test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- uses: eifinger/setup-rye@v2
- uses: pre-commit/[email protected]

- run: rye install
- run: rye fmt
- run: rye lint
- run: rye test
- run: rye mypy src
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
name: rye-lint
description: "Lint Python via 'rye lint'"
entry: rye lint --fix
language: system
types_or: [python, pyi]
args: []
require_serial: true
Expand All @@ -15,6 +16,7 @@ repos:
name: rye-format
description: "Format Python via 'rye fmt'"
entry: rye fmt
language: system
types_or: [python, pyi]
args: []
require_serial: true
Expand All @@ -24,6 +26,7 @@ repos:
name: rye-test
description: "Test Python via 'rye test'"
entry: rye test
language: system
types_or: [python, pyi]
args: []
pass_filenames: false
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ managed = true
dev-dependencies = [
"pre-commit>=3.7.1",
"pytest>=8.2.2",
"mypy>=1.11.2",
]

[tool.hatch.metadata]
Expand Down
5 changes: 5 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ identify==2.5.36
# via pre-commit
iniconfig==2.0.0
# via pytest
mypy==1.11.2
mypy-extensions==1.0.0
# via mypy
nodeenv==1.9.1
# via pre-commit
packaging==24.1
Expand All @@ -30,5 +33,7 @@ pre-commit==3.7.1
pytest==8.2.2
pyyaml==6.0.1
# via pre-commit
typing-extensions==4.12.2
# via mypy
virtualenv==20.26.3
# via pre-commit

0 comments on commit 201cb6e

Please sign in to comment.