Skip to content

Commit 0f4e4e3

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

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,37 @@ 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/
32+
ruff check .
33+
ruff format --check .
34+
3835
# Job to run tests
3936
tests:
4037
runs-on: ubuntu-latest
4138
strategy:
4239
matrix:
43-
python-version: [3.9,3.10]
40+
python-version: ['3.9','3.10']
4441
# Set environment variables
4542
steps:
4643
- name: Checkout the repository
47-
uses: actions/checkout@v2
44+
uses: actions/checkout@v5
4845

4946
- name: Setup Python
50-
uses: actions/setup-python@v1
47+
uses: actions/setup-python@v6
5148
with:
5249
python-version: ${{ matrix.python-version }}
5350

@@ -60,6 +57,7 @@ jobs:
6057
pytest -vs tests/
6158
6259
- name: Upload coverage to Codecov
63-
uses: codecov/codecov-action@v1
60+
uses: codecov/codecov-action@v5
6461
with:
65-
file: ./coverage.xml
62+
files: ./coverage.xml
63+

0 commit comments

Comments
 (0)