Skip to content

Commit ce06be5

Browse files
committed
Do not test in-place with tox
1 parent 2fa938a commit ce06be5

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ check-dist:
4545
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
4646
artifacts:
4747
reports:
48-
junit: junit.xml
48+
junit: .tox/junit.xml
4949
coverage_report:
5050
coverage_format: cobertura
51-
path: coverage.xml
51+
path: .tox/coverage.xml
5252

5353
test-tox-python:
5454
extends: .test-tox

tox.ini

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# Tox (http://tox.testrun.org/) is a tool for running tests
2-
# in multiple virtualenvs. This configuration file will run the
3-
# test suite on all supported python versions. To use it, "pip install tox"
4-
# and then run "tox" from this directory.
5-
61
[tox]
72
envlist = py39, py310, py311, py312, py313, py314, pypy3
83

94
[testenv]
10-
usedevelop = true
5+
changedir = {toxworkdir}
116
commands =
12-
coverage run --omit=*/tests/*,*/.tox/* -m xmlrunner discover -s sql.tests {posargs}
7+
coverage run --source=sql --omit=*/tests/* -m xmlrunner discover -s sql.tests {posargs}
138
commands_post =
149
coverage report --omit=README.rst
1510
coverage xml --omit=README.rst

0 commit comments

Comments
 (0)