Skip to content

Commit 322168f

Browse files
committed
Update workflow versions and migrate to astral gh action
1 parent a60166a commit 322168f

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.9]
17+
python-version: [3.10]
1818

1919
steps:
2020
- name: Checkout the repository
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v5
2222

2323
- name: Setup Python
24-
uses: actions/setup-python@v1
25-
with:
26-
python-version: ${{ matrix.python-version }}
24+
uses: astral-sh/ruff-action@v3
2725

2826
- name: Install package
2927
run: |
3028
pip install mypy
31-
pip install black
32-
pip install isort
3329
- name: Run pre-checks
3430
run: |
3531
mypy fastapi_asyncpg/
36-
isort -c -rc fastapi_asyncpg/
37-
black -l 80 --check --verbose fastapi_asyncpg/
3832
# Job to run tests
3933
tests:
4034
runs-on: ubuntu-latest
@@ -44,10 +38,10 @@ jobs:
4438
# Set environment variables
4539
steps:
4640
- name: Checkout the repository
47-
uses: actions/checkout@v2
41+
uses: actions/checkout@v5
4842

4943
- name: Setup Python
50-
uses: actions/setup-python@v1
44+
uses: actions/setup-python@v6
5145
with:
5246
python-version: ${{ matrix.python-version }}
5347

@@ -60,6 +54,6 @@ jobs:
6054
pytest -vs tests/
6155
6256
- name: Upload coverage to Codecov
63-
uses: codecov/codecov-action@v1
57+
uses: codecov/codecov-action@v5
6458
with:
6559
file: ./coverage.xml

0 commit comments

Comments
 (0)