]> git.phdru.name Git - m_librarian.git/blobdiff - tox.ini
Tests(tox): Use `%TEMP%` for sqlite on w32
[m_librarian.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 4d2880983b24ce3b8978aa0e3b9cadbb2903f705..14f1c19779a2bf09395d45ef0c5f048ef0ea588f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -19,10 +19,10 @@ deps =
     pip < 19.2
     setuptools < 44
     -rdevscripts/requirements/requirements_tests.txt
-passenv = CI TRAVIS TRAVIS_* APPVEYOR DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
+passenv = CI APPVEYOR DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
 setenv =
     VIRTUALENV_PIP = 19.1.1
-platform = linux
+platform = linux|darwin
 
 [testenv:{py27,py34,py35,py36,py37,py38,py39}-sqlite]
 commands =
@@ -34,9 +34,9 @@ commands =
 platform = win32
 commands =
     {[testenv]commands}
-    -rm.py -f C:/projects/m-librarian/test.sqdb
-    pytest --cov=m_librarian -D sqlite:/C:/projects/m-librarian/test.sqdb?debug=1
-    rm.py -f C:/projects/m-librarian/test.sqdb
+    -rm.py -f {env:TEMP}/test.sqdb
+    pytest --cov=m_librarian -D sqlite:/{env:TEMP}/test.sqdb?debug=1
+    rm.py -f {env:TEMP}/test.sqdb
 
 # flake8
 [testenv:{py27,py34,py35,py36,py37,py38,py39}-flake8]
@@ -45,3 +45,12 @@ deps =
 commands =
     {[testenv]commands}
     flake8
+
+[gh-actions]
+python =
+    2.7: py27
+    3.5: py35
+    3.6: py36
+    3.7: py37
+    3.8: py38
+    3.9: py39