Commit 77a206bf authored by Bart Kamphorst's avatar Bart Kamphorst
Browse files

fix: call pytest directly

Calling pytest through python -m adds cwd to PYTHONPATH, which may lead 
to unexpected or undesired behaviour.
parent bc6a335b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ python:pytest:
  script:
    - !reference [".python:pre", script]
    - !reference [".python:pre-install", script]
    - python3 -m pytest --cov=${PYTHON_PACKAGE}
    - pytest --cov=${PYTHON_PACKAGE}
      --cov-fail-under=${PYTEST_COVERAGE_THRESHOLD}
      --junitxml=${CI_PROJECT_DIR}/pytest-report.xml --cov-report
      xml:${CI_PROJECT_DIR}/pytest-coverage.xml -p no:cacheprovider