|
19 | 19 |
|
20 | 20 | @nox.session(python=["3.5", "3.6", "3.7", "3.8"])
|
21 | 21 | @nox.parametrize("django", ["2.2.10", "3.0", "3.0.1", "3.0.2", "3.0.3"])
|
22 |
| -@nox.parametrize("database", ["postgres", "mysql"]) |
| 22 | +@nox.parametrize("database", ["postgres", "mysql", "sqlite3"]) |
23 | 23 | def tests(session, django, database):
|
24 | 24 | if django.split(".")[0] == "3" and session.python == "3.5":
|
25 | 25 | session.skip("Python: {} and django: {}".format(session.python, django))
|
26 | 26 |
|
27 |
| - session.install( |
28 |
| - *DB_PACKAGE[database][session.python], |
29 |
| - env={ |
30 |
| - "LDFLAGS": "-L/usr/local/opt/[email protected]/lib", |
31 |
| - "CPPFLAGS": "-I/usr/local/opt/[email protected]/include", |
32 |
| - } |
33 |
| - ) |
| 27 | + if database != "sqlite3": |
| 28 | + session.install( |
| 29 | + *DB_PACKAGE[database][session.python], |
| 30 | + env={ |
| 31 | + "LDFLAGS": "-L/usr/local/opt/[email protected]/lib", |
| 32 | + "CPPFLAGS": "-I/usr/local/opt/[email protected]/include", |
| 33 | + } |
| 34 | + ) |
34 | 35 | session.install("django=={}".format(django))
|
35 |
| - session.run("bash", "-c", "make test", env={"ENV_DB": database}) |
| 36 | + session.run("bash", "-c", "make test", external=True, env={"ENV_DB": database}) |
36 | 37 |
|
37 | 38 |
|
38 | 39 | @nox.session
|
|
0 commit comments