From 9aa88749f39f7c399e84f56be3140f32cc195e5e Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Mon, 18 Dec 2023 22:27:14 +0100 Subject: [PATCH] Use template to wheel tests. --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0751b1045..4c06cbb24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,6 +131,43 @@ test-services-linux-debug: reports: junit: build/testResult.xml + +.test_python_wheels_template: + services: + - name: gitlab.desy.de:5555/asapo/asapo/asapo-standalone-dev:latest + image: + name: $CI_REGISTRY_IMAGE/asapo-packages-manylinux-build-env:latest + stage: deploy + script: + - python_bin=$PYTHON_PATH/bin/python + - pip_bin=$PYTHON_PATH/bin/pip + - cd $CI_PROJECT_DIR/tests/automatic/pytests + - $pip_bin install pytest + - $pip_bin install --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_consumer==$CLIENT_VERSION + - $pip_bin install --trusted-host nims.desy.de --find-links=http://nims.desy.de/extra/asapo/linux_wheels asapo_producer==$CLIENT_VERSION + - $python_bin -m pytest test_pipeline.py --token-path standalone_token.txt -vv -o log_cli=true --log-cli-level=DEBUG $PYTEST_KEY + tags: + - DESY-intern + dependencies: + - upload-python-packages + - build-services-docker-release + + +test_wheels-python36_dev: + extends: .test_python_wheels_template + variables: + PYTHON_PATH: /opt/python/cp36-cp36m + CLIENT_VERSION: 100.0.dev2 + PYTEST_KEY: "" + +test_wheels-python36_22.03.00: + extends: .test_python_wheels_template + variables: + PYTHON_PATH: /opt/python/cp36-cp36m + CLIENT_VERSION: 22.03.00 + PYTEST_KEY: -m compatible + + test_python_wheels: services: - name: gitlab.desy.de:5555/asapo/asapo/asapo-standalone-dev:latest -- GitLab