From 480b2b0d65c711c68c49bf756239aab1cdec1de5 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Thu, 30 Mar 2023 15:56:14 +0100 Subject: [PATCH] ci(pytest): ensure current directory in python path when running --- .gitlab-ci.yml | 2 +- scripts/quicktest.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75f103b..e32098f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ test:pytest: - apt update && apt install build-essential - pip install -r requirements.txt --quiet - pip install pytest - - DISABLE_METRICS=true pytest tests + - DISABLE_METRICS=true python -m pytest tests test:pylint: script: diff --git a/scripts/quicktest.sh b/scripts/quicktest.sh index 983474b..93cfe88 100755 --- a/scripts/quicktest.sh +++ b/scripts/quicktest.sh @@ -5,5 +5,5 @@ set -e bandit -r app flake8 app mypy app -pytest tests +python -m pytest tests