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 && \
apt-get install \
curl \
pkgconf \
python3 \
python3-pip \
tox \
git \
openjdk-11-jdk-headless \
-y
COPY .docker/wait-for-it.sh /wait-for-it.sh
ADD https://gitlab.com/api/v4/projects/13656973/repository/branches/dev \
pylib_version.json
RUN pip install -U pip
RUN git clone --depth 1 --branch dev https://gitlab.com/caosdb/caosdb-pylib.git && \
cd caosdb-pylib && pip install -U .
RUN pip install --break-system-packages -U pip
RUN pip install --break-system-packages -U git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
# At least recommonmark 0.6 required.
# RUN pip install -U html2text pycodestyle pylint recommonmark sphinx-rtd-theme gitignore-parser
COPY . /git
RUN rm -r /git/.git \
&& 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
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force
......@@ -123,14 +123,14 @@ linting:
- make lint
allow_failure: true
unittest_py39:
unittest_py311:
tags: [docker]
stage: unittest
image: $CI_REGISTRY_IMAGE
needs: [build-testenv]
script:
# First verify that system Python actually is 3.9
- python3 -c "import sys; assert sys.version.startswith('3.9')"
# First verify that system Python actually is 3.11
- python3 -c "import sys; assert sys.version.startswith('3.11')"
- python3 -c "import linkahead; print('LinkAhead Version:', linkahead.__version__)"
- tox
......@@ -139,20 +139,20 @@ unittest_py38:
stage: unittest
image: python:3.8
script: &python_test_script
- pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install .[all]
- pip install --break-system-packages git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install --break-system-packages .[all]
- pytest --cov=caosadvancedtools unittests
unittest_py310:
unittest_py39:
tags: [docker]
stage: unittest
image: python:3.10
image: python:3.9
script: *python_test_script
unittest_py311:
unittest_py310:
tags: [docker]
stage: unittest
image: python:3.11
image: python:3.10
script: *python_test_script
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