Skip to content
Snippets Groups Projects
Commit f417796d authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

WIP: Add Python 3.9 and 3.10 to pipeline

parent 9a719608
No related branches found
No related tags found
2 merge requests!79Release 0.10.0,!73F pipeline python versions
Pipeline #29719 failed
...@@ -59,12 +59,34 @@ unittest_py3.8: ...@@ -59,12 +59,34 @@ unittest_py3.8:
stage: test stage: test
needs: [ ] needs: [ ]
image: python:3.8 image: python:3.8
script: &python_test_script script:
# Python3.8 has problems with tox and pip so use plain pytest here
- touch ~/.pycaosdb.ini - touch ~/.pycaosdb.ini
- pip install nose pytest pytest-cov python-dateutil jsonschema==4.0.1 - pip install nose pytest pytest-cov python-dateutil jsonschema==4.0.1
- pip install . - pip install .
- python -m pytest unittests - python -m pytest unittests
unittest_py3.9:
tags: [ docker ]
stage: test
needs: [ ]
image: python:3.9
script: &python_test_script
# Python3.8 has problems with tox and pip so use plain pytest here
- touch ~/.pycaosdb.ini
- cd unittests/docker
- cp sources.list.local /etc/apt/
- mv /etc/apt/sources.list /etc/apt/sources.list.orig
- cat /etc/apt/sources.list.local /etc/apt/sources.list.orig > /etc/apt/sources.list
- apt-get update apt-get install -y tox
unittest_py3.10:
tags: [ docker ]
stage: test
needs: [ ]
image: python:3.10
script: *python_test_script
# Trigger building of server image and integration tests # Trigger building of server image and integration tests
trigger_build: trigger_build:
stage: deploy stage: deploy
...@@ -108,7 +130,7 @@ build-testenv: ...@@ -108,7 +130,7 @@ build-testenv:
pages_prepare: &pages_prepare pages_prepare: &pages_prepare
tags: [ cached-dind ] tags: [ cached-dind ]
stage: deploy stage: deploy
needs: [ code_style, pylint, unittest_py3.8 ] needs: [ code_style, pylint, unittest_py3.8, unittest_py3.9, unittest_py3.10 ]
only: only:
refs: refs:
- /^release-.*$/i - /^release-.*$/i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment