details:   https://code.tryton.org/python-sql/commit/057df7e18317
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sat Mar 21 18:42:12 2026 +0100
description:
        Do not test in-place with tox
diffstat:

 .gitlab-ci.yml |  4 ++--
 tox.ini        |  9 ++-------
 2 files changed, 4 insertions(+), 9 deletions(-)

diffs (37 lines):

diff -r 7e406d3ea9cb -r 057df7e18317 .gitlab-ci.yml
--- a/.gitlab-ci.yml    Sat Mar 21 18:35:19 2026 +0100
+++ b/.gitlab-ci.yml    Sat Mar 21 18:42:12 2026 +0100
@@ -45,10 +45,10 @@
   coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
   artifacts:
     reports:
-      junit: junit.xml
+      junit: .tox/junit.xml
       coverage_report:
         coverage_format: cobertura
-        path: coverage.xml
+        path: .tox/coverage.xml
 
 test-tox-python:
   extends: .test-tox
diff -r 7e406d3ea9cb -r 057df7e18317 tox.ini
--- a/tox.ini   Sat Mar 21 18:35:19 2026 +0100
+++ b/tox.ini   Sat Mar 21 18:42:12 2026 +0100
@@ -1,15 +1,10 @@
-# Tox (http://tox.testrun.org/) is a tool for running tests
-# in multiple virtualenvs. This configuration file will run the
-# test suite on all supported python versions. To use it, "pip install tox"
-# and then run "tox" from this directory.
-
 [tox]
 envlist = py39, py310, py311, py312, py313, py314, pypy3
 
 [testenv]
-usedevelop = true
+changedir = {toxworkdir}
 commands =
-    coverage run --omit=*/tests/*,*/.tox/* -m xmlrunner discover -s sql.tests 
{posargs}
+    coverage run --source=sql --omit=*/tests/* -m xmlrunner discover -s 
sql.tests {posargs}
 commands_post =
     coverage report --omit=README.rst
     coverage xml --omit=README.rst

Reply via email to