Skip to content

Commit 0d47065

Browse files
committed
Add Python 3.11 to lint workflow and check sync/async compatibility
1 parent 0af8c17 commit 0d47065

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,30 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- uses: actions/setup-python@v5
23+
- name: Set up Python 3.9
24+
uses: actions/setup-python@v5
2425
with:
2526
python-version: "3.9"
2627

2728
- name: install packages to tests
2829
run: |
2930
pip install ./psycopg[dev,test]
3031
pip install types-polib
32+
pip install pre-commit
3133
3234
- name: Lint codebase
3335
run: pre-commit run -a --color=always
3436

37+
- name: Set up Python 3.11
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: "3.11"
41+
42+
- name: Install packages for async_to_sync
43+
run: |
44+
pip install ./psycopg[dev,test]
45+
pip install types-polib
46+
3547
- name: Check for sync/async inconsistencies
3648
run: ./tools/async_to_sync.py --check $(find tests -name "*_async.py" -type f ! -path "tests/pq/test_async.py")
3749

0 commit comments

Comments
 (0)