Skip to content
Snippets Groups Projects
Verified Commit a47f95ad authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Debian 12 in pipeline

parent 0506e93e
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!122Explicit dependencies for testing, documentation, ...
FROM debian:11 FROM debian:12
RUN apt-get update && \ RUN apt-get update && \
apt-get install \ apt-get install \
curl \
pkgconf \
python3 \ python3 \
python3-pip \ python3-pip \
tox \ tox \
git \ git \
openjdk-11-jdk-headless \
-y -y
COPY .docker/wait-for-it.sh /wait-for-it.sh COPY .docker/wait-for-it.sh /wait-for-it.sh
ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \ ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \
pylib_version.json pylib_version.json
RUN pip install -U pip RUN pip install --break-system-packages -U pip
RUN git clone --depth 1 --branch dev https://gitlab.com/caosdb/caosdb-pylib.git && \ RUN pip install --break-system-packages -U git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
cd caosdb-pylib && pip install -U .
# At least recommonmark 0.6 required. # At least recommonmark 0.6 required.
# RUN pip install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser # RUN pip install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser
COPY . /git COPY . /git
RUN rm -r /git/.git \ RUN rm -r /git/.git \
&& mv /git/.docker/pycaosdb.ini /git/integrationtests && mv /git/.docker/pycaosdb.ini /git/integrationtests
RUN cd /git && pip install -U .[all] RUN cd /git && pip install --break-system-packages -U .[all]
WORKDIR /git/integrationtests WORKDIR /git/integrationtests
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force
...@@ -123,14 +123,14 @@ linting: ...@@ -123,14 +123,14 @@ linting:
- make lint - make lint
allow_failure: true allow_failure: true
unittest_py39: unittest_py311:
tags: [docker] tags: [docker]
stage: unittest stage: unittest
image: $CI_REGISTRY_IMAGE image: $CI_REGISTRY_IMAGE
needs: [build-testenv] needs: [build-testenv]
script: script:
# First verify that system Python actually is 3.9 # First verify that system Python actually is 3.11
- python3 -c "import sys; assert sys.version.startswith('3.9')" - python3 -c "import sys; assert sys.version.startswith('3.11')"
- python3 -c "import linkahead; print('LinkAhead Version:', linkahead.__version__)" - python3 -c "import linkahead; print('LinkAhead Version:', linkahead.__version__)"
- tox - tox
...@@ -139,20 +139,20 @@ unittest_py38: ...@@ -139,20 +139,20 @@ unittest_py38:
stage: unittest stage: unittest
image: python:3.8 image: python:3.8
script: &python_test_script script: &python_test_script
- pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev - pip install --break-system-packages git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install .[all] - pip install --break-system-packages .[all]
- pytest --cov=caosadvancedtools unittests - pytest --cov=caosadvancedtools unittests
unittest_py310: unittest_py39:
tags: [docker] tags: [docker]
stage: unittest stage: unittest
image: python:3.10 image: python:3.9
script: *python_test_script script: *python_test_script
unittest_py311: unittest_py310:
tags: [docker] tags: [docker]
stage: unittest stage: unittest
image: python:3.11 image: python:3.10
script: *python_test_script script: *python_test_script
unittest_py312: unittest_py312:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment