From 19be433bf16097a98ae5de4f633ebd9fe807e4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Montury?= <10528250-pytgaen@users.noreply.gitlab.com> Date: Sun, 20 Apr 2025 16:41:02 +0200 Subject: [PATCH] fix: change to pytest bin instead of module issue #109 --- templates/gitlab-ci-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 1a7c07a..993afdc 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -1306,7 +1306,7 @@ py-pytest: - mkdir -p -m 777 reports - install_requirements - _pip install pytest pytest-cov coverage - - _python -m pytest --junit-xml=reports/TEST-pytests.xml --cov --cov-report term --cov-report xml:reports/py-coverage.cobertura.xml ${PYTEST_ARGS} + - _run pytest --junit-xml=reports/TEST-pytests.xml --cov --cov-report term --cov-report xml:reports/py-coverage.cobertura.xml ${PYTEST_ARGS} rules: # skip if $PYTEST_ENABLED not set - if: '$PYTEST_ENABLED != "true"' -- GitLab