diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-09-06 21:12:03 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-09-06 22:27:07 +0200 |
commit | b1c50ad223957606a5d5d461f415b3514493eec4 (patch) | |
tree | 4e2d87ea26b574f9c9295d56afebdea90cdb04ea | |
parent | d640192877e4d1da75e8dea34d2374c404e80538 (diff) | |
download | sqlalchemy-workflow_test_aiosqlite.tar.gz |
Add async tests to the github workflowworkflow_test_aiosqlite
Fixes: #6967
Change-Id: I222cb5bdedf572e734c827d72bcbced202cdd62f
-rw-r--r-- | .github/workflows/run-test.yaml | 3 | ||||
-rw-r--r-- | test/ext/asyncio/test_engine_py3k.py | 1 | ||||
-rw-r--r-- | tox.ini | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index 7f6de8a21..0d9a8e9ed 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 c75dd8665..0450e3054 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""" @@ -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 |