Skip to content
Snippets Groups Projects
Commit 2e5a0746 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

gitlab arrage

parent e84f4af3
No related branches found
No related tags found
No related merge requests found
Pipeline #16161 failed
...@@ -76,11 +76,29 @@ install_and_test_310: ...@@ -76,11 +76,29 @@ install_and_test_310:
expire_in: 8d expire_in: 8d
install_and_test_311: install_and_test_311:
image: python:3.11 image: registry.lis-lab.fr:5005/dev/ltfatpy/python-ci:3.11
stage: test stage: test
before_script:
- echo "image registry 3.11"
script:
- pip3 install -e . --no-deps
- python3 -m pytest
artifacts:
when: always
untracked: true
paths:
- build
expire_in: 8d
only:
- ci39-python12
install_and_test_312:
image: registry.lis-lab.fr:5005/dev/ltfatpy/python-ci:3.12
stage: test
before_script:
- echo "image registry 3.12"
script: script:
- pip3 install cython - pip3 install -e . --no-deps
- pip3 install --no-build-isolation -e . --no-deps
- python3 -m pytest - python3 -m pytest
artifacts: artifacts:
when: always when: always
...@@ -88,6 +106,8 @@ install_and_test_311: ...@@ -88,6 +106,8 @@ install_and_test_311:
paths: paths:
- build - build
expire_in: 8d expire_in: 8d
only:
- ci39-python12
# Tests on X86_64 ubuntu # Tests on X86_64 ubuntu
ubuntu:X86_64: ubuntu:X86_64:
......
# Dockerfile
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION}-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
cmake \
gcc \
g++ \
make \
libfftw3-dev \
liblapack-dev \
libjs-jquery-hotkeys \
libjs-jquery-isonscreen \
libjs-jquery-tablesorter \
texlive-latex-extra \
dvipng \
python3-dev \
python3-setuptools \
python3-pip \
python3-wheel \
python3-tk \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip \
&& pip install virtualenv \
&& virtualenv /venv \
&& /venv/bin/pip install matplotlib numpy scipy six coverage pytest pytest-cov
ENV PATH="/venv/bin:$PATH"
#!/bin/bash
# "3.7" "3.10"
PYTHON_VERSIONS=("3.11" "3.12")
GITLAB_REGISTRY="registry.lis-lab.fr:5005/dev/ltfatpy"
for version in "${PYTHON_VERSIONS[@]}"; do
echo "Building Python $version..."
docker build --build-arg PYTHON_VERSION=$version -t "$GITLAB_REGISTRY/python-ci:$version" .
docker push "$GITLAB_REGISTRY/python-ci:$version"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment