trying to run the proper python
ci-tests/python-test/pipeline/head There was a failure building this commit

This commit is contained in:
2022-03-01 15:38:24 +02:00
parent 0764fa0fd1
commit 18f9b4abf5
Vendored
+5 -1
View File
@@ -28,9 +28,13 @@ pipeline {
docker { image "python:$PY_VERSION"
args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings"'}
}
environment {
PY_ENV = "/tmp/pitestenv"
}
steps {
sh '''
python3 -m venv /tmp/pitestenv; source /tmp/pitestenv/bin/activate
python -m venv ${PY_ENV}; source ${PY_ENV}/bin/activate
export PATH=${PY_ENV}/bin:${PATH}
pip install -r requirements.txt
python -m pytest catalog/tests/
python -m xmlrunner discover -p *_test.py