]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add async tests to the github workflow
authorFederico Caselli <cfederico87@gmail.com>
Mon, 6 Sep 2021 19:12:03 +0000 (21:12 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 6 Sep 2021 20:27:07 +0000 (22:27 +0200)
Fixes: #6967
Change-Id: I222cb5bdedf572e734c827d72bcbced202cdd62f

.github/workflows/run-test.yaml
test/ext/asyncio/test_engine_py3k.py
tox.ini

index 7f6de8a21c3b2225933f6944f409bbbffe0eb9eb..0d9a8e9ed5bad3f5193b9b0035318292f36d6963 100644 (file)
@@ -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
index c75dd866555313139c859a9a92a5a47225360611..0450e30544d1be9214d934d97c397d169ae50cda 100644 (file)
@@ -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 e20671b698940b6eb4988941f88cbf8789c8b5e5..3cf11ba2e728b08f2ecb1bdc9bd6ea7dc3adbfd0 100644 (file)
--- 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