Skip to content

Commit

Permalink
CI: Use Python 3.11
Browse files Browse the repository at this point in the history
The code is not compatible with Python 3.12, yet.
  • Loading branch information
amotl committed May 17, 2024
1 parent 78cae2f commit bf302da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.11'
- name: Run linter
run: make lint
tests:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.11'
- name: Run software tests
run: make test
coverage:
Expand All @@ -33,6 +33,6 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.11'
- name: Measure code coverage
run: make coverage
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
"dotmap==1.3.23",
"flakehell==0.9.0",
"flake8==3.8.4",
# FIXME: Does not work per 2024-05-18
# "flake8-bandit==2.1.2",
"flake8-black==0.2.1",
"flake8-bugbear==21.4.3",
"flake8-bandit==2.1.2",
"flake8-isort==4.0.0",
"flake8-bugbear<22",
"flake8-isort<5",
"black==21.5b1",
"isort==5.8.0",
]
Expand All @@ -59,6 +60,9 @@
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Scientific/Engineering :: Information Analysis",
Expand Down
2 changes: 1 addition & 1 deletion tests/adapter/test_timescaledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_prepare_database_test_schema(mock_connect, config):

# Test Case 1:
db_writer.prepare_database()
stmt = str(cursor.execute.call_args_list[0])
stmt = str(cursor.execute.call_args_list[1])
assert "plant TEXT" in stmt
assert "line TEXT" in stmt
conn.commit.assert_called()
Expand Down

0 comments on commit bf302da

Please sign in to comment.