Skip to content

Commit 433ba0b

Browse files
author
Eugene Shershen
committed
update workflows and pre-commit to use Python 3.12
1 parent 2fed1bb commit 433ba0b

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
build: [linux_3.9, windows_3.9, mac_3.9]
16+
build: [linux_3.12, windows_3.12, mac_3.12]
1717
include:
18-
- build: linux_3.9
18+
- build: linux_3.12
1919
os: ubuntu-latest
20-
python: 3.9
21-
- build: windows_3.9
20+
python: 3.12
21+
- build: windows_3.12
2222
os: windows-latest
23-
python: 3.9
24-
- build: mac_3.9
23+
python: 3.12
24+
- build: mac_3.12
2525
os: macos-latest
26-
python: 3.9
26+
python: 3.12
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
@@ -38,18 +38,18 @@ jobs:
3838
python -m pip install --upgrade pip wheel
3939
pip install -r requirements.txt
4040
41-
# test all the builds apart from linux_3.8...
41+
# test all the builds apart from linux_3.12...
4242
- name: Test with pytest
43-
if: matrix.build != 'linux_3.9'
43+
if: matrix.build != 'linux_3.12'
4444
run: pytest
4545

46-
# only do the test coverage for linux_3.8
46+
# only do the test coverage for linux_3.12
4747
- name: Produce coverage report
48-
if: matrix.build == 'linux_3.9'
48+
if: matrix.build == 'linux_3.12'
4949
run: pytest --cov=fastapi_async_sqlalchemy --cov-report=xml
5050

5151
- name: Upload coverage report
52-
if: matrix.build == 'linux_3.9'
52+
if: matrix.build == 'linux_3.12'
5353
uses: codecov/codecov-action@v4
5454
with:
5555
file: ./coverage.xml
@@ -65,7 +65,7 @@ jobs:
6565
- name: Set up Python
6666
uses: actions/setup-python@v5
6767
with:
68-
python-version: 3.9
68+
python-version: 3.12
6969

7070
- name: Install dependencies
7171
run: pip install flake8
@@ -83,7 +83,7 @@ jobs:
8383
- name: Set up Python
8484
uses: actions/setup-python@v5
8585
with:
86-
python-version: 3.9
86+
python-version: 3.12
8787

8888
- name: Install dependencies
8989
# isort needs all of the packages to be installed so it can

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: (alembic|build|dist|docker|esign|kubernetes|migrations)
22

33
default_language_version:
4-
python: python3.8
4+
python: python3.12
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks

0 commit comments

Comments
 (0)