Skip to content
Snippets Groups Projects
Commit a0829d1c authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-pipeline-python-versions' into 'dev'

TST: Use other Python versions

See merge request !63
parents ac04c4fe 3624c2b1
No related branches found
No related tags found
2 merge requests!71REL: RElease v0.2.0,!63TST: Use other Python versions
Pipeline #30290 failed
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019 Henrik tom Wörden # Copyright (C) 2019 Henrik tom Wörden
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -113,14 +113,34 @@ info: ...@@ -113,14 +113,34 @@ info:
script: script:
- *env - *env
unittest: unittest_py3.9:
tags: [cached-dind] tags: [cached-dind]
image: docker:20.10
stage: test stage: test
image: $CI_REGISTRY_IMAGE image: $CI_REGISTRY_IMAGE
script: script:
- tox - tox
unittest_py3.8:
tags: [cached-dind]
stage: test
image: python:3.8
script: &python_test_script
# install dependencies
- pip install pytest pytest-cov
# TODO: Use f-branch logic here
- pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-advanced-user-tools.git@dev
- pip install .
# actual test
- caosdb-crawler --help
- pytest --cov=caosdb -vv ./unittests
unittest_py3.10:
tags: [cached-dind]
stage: test
image: python:3.10
script: *python_test_script
inttest: inttest:
tags: [docker] tags: [docker]
services: services:
...@@ -224,7 +244,7 @@ build-testenv: ...@@ -224,7 +244,7 @@ build-testenv:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
# use here general latest or specific branch latest... # use here general latest or specific branch latest...
- docker build - docker build
--build-arg PYLIB=${PYLIB} --build-arg PYLIB=${PYLIB}
--build-arg ADVANCED=${ADVANCED:dev} --build-arg ADVANCED=${ADVANCED:dev}
--file .docker/Dockerfile --file .docker/Dockerfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment