Skip to content
Snippets Groups Projects

Added custom LofarDeviceProxy to enhance support for high-dimensional arrays in attribtues

Merged Jan David Mol requested to merge reshape-highdim-arrays into main
All threads resolved!
Compare and Show latest version
2 files
+ 2
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 34
9
default:
image: python:3.7 # minimum supported version
image: $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA # minimum supported version
# Make sure each step is executed in a virtual environment with some basic dependencies present
before_script:
- python --version # For debugging
- python -m pip install --upgrade pip
- pip install --upgrade tox
cache:
paths:
- .cache/pip
stages:
- image
- lint
- test
- package
@@ -20,6 +19,19 @@ stages:
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
build_test_image_python37:
stage: image
image: docker
services:
- name: docker:dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA -f docker/Dockerfile.ci_python37 docker
- docker push $CI_REGISTRY/lofar2.0/lofar-station-client/ci_python37:$CI_COMMIT_SHORT_SHA
run_black:
stage: lint
script:
@@ -46,24 +58,37 @@ run_unit_tests_py37:
- echo "run python3.7 unit tests /w coverage"
- tox -e py37
run_unit_tests_py38:
image: python:3.8
.run_unit_tests_pyXX:
# installs the prerequisites explicitly, instead of piggy backing
# on the ci_python37 image. This allows us to use different base
# images with different python versions.
stage: test
before_script:
- apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-python-dev libtango-dev # Needed to install pytango
- python -m pip install --upgrade pip
- pip install --upgrade tox
run_unit_tests_py38:
extends: .run_unit_tests_pyXX
image: python:3.8-buster
script:
- echo "run python3.8 unit tests /w coverage"
- tox -e py38
run_unit_tests_py39:
image: python:3.9
stage: test
extends: .run_unit_tests_pyXX
image: python:3.9-bullseye
script:
- echo "run python3.9 unit tests /w coverage"
- tox -e py39
run_unit_tests_py310:
image: python:3.10
stage: test
extends: .run_unit_tests_pyXX
image: python:3.10-bullseye
script:
# Debian Bullseye ships with libboost-python linked to Python 3.9. Use the one from Debian Sid instead.
- echo 'deb http://deb.debian.org/debian sid main' >> /etc/apt/sources.list
- apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y libboost-python1.74-dev
- echo "run python3.10 unit tests /w coverage"
- tox -e py310
Loading