From: Federico Caselli Date: Mon, 6 Sep 2021 19:12:03 +0000 (+0200) Subject: Add async tests to the github workflow X-Git-Tag: rel_1_4_24~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c50ad223957606a5d5d461f415b3514493eec4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add async tests to the github workflow Fixes: #6967 Change-Id: I222cb5bdedf572e734c827d72bcbced202cdd62f --- diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index 7f6de8a21c..0d9a8e9ed5 100644 --- a/.github/workflows/run-test.yaml +++ b/.github/workflows/run-test.yaml @@ -46,6 +46,9 @@ jobs: # autocommit tests fail on the ci for some reason - python-version: "pypy3" pytest-args: "-k 'not test_autocommit_on and not test_turn_autocommit_off_via_default_iso_level and not test_autocommit_isolation_level'" + # add aiosqlite on linux + - os: "ubuntu-latest" + pytest-args: "--dbdriver pysqlite --dbdriver aiosqlite" exclude: # c-extensions fail to build on windows for python 2.7 diff --git a/test/ext/asyncio/test_engine_py3k.py b/test/ext/asyncio/test_engine_py3k.py index c75dd86655..0450e30544 100644 --- a/test/ext/asyncio/test_engine_py3k.py +++ b/test/ext/asyncio/test_engine_py3k.py @@ -232,6 +232,7 @@ class AsyncEngineTest(EngineFixture): is_false(async_engine == None) @async_test + @testing.requires.python37 async def test_no_attach_to_event_loop(self, testing_engine): """test #6409""" diff --git a/tox.ini b/tox.ini index e20671b698..3cf11ba2e7 100644 --- a/tox.ini +++ b/tox.ini @@ -158,12 +158,16 @@ commands = # command run in the github action when cext are active. [testenv:github-cext] +deps = {[testenv]deps} + .[aiosqlite] commands= python -m pytest {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:IDENTS:} {env:MEMUSAGE:} {env:COVERAGE:} {posargs} oracle,mssql,sqlite_file: python reap_dbs.py db_idents.txt # command run in the github action when cext are not active. [testenv:github-nocext] +deps = {[testenv]deps} + .[aiosqlite] commands= python -m pytest {env:WORKERS} {env:SQLITE:} {env:POSTGRESQL:} {env:MYSQL:} {env:ORACLE:} {env:MSSQL:} {env:BACKENDONLY:} {env:IDENTS:} {env:MEMUSAGE:} {env:COVERAGE:} {posargs} oracle,mssql,sqlite_file: python reap_dbs.py db_idents.txt