From fb4bdc115bc33a9181576b6f8386e11a372aa61f Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 30 Apr 2024 14:30:47 +0200 Subject: [PATCH] [ci] Specialise general pipeline with specific information for this package --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56a767b7..2018d406 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,3 +6,27 @@ include: - project: 'biosignal/templates/ci' ref: main file: 'python.yml' + +variables: + OMP_NUM_THREADS: 1 # for pytorch CI tests on docker platform + GIT_SUBMODULE_STRATEGY: normal + GIT_SUBMODULE_DEPTH: 1 + +.snippets: + apt-install-libgl: + # apt install libgl1-mesa-glx for grad-cam + - | + if [[ ${CI_RUNNER_TAGS} =~ '"docker"' ]]; then \ + apt update; \ + apt install -y libgl1-mesa-glx > /dev/null; \ + fi + +tests: + before_script: + - !reference [.snippets, setup-pixi] + - !reference [.snippets, apt-install-libgl] + +documentation: + before_script: + - !reference [.snippets, setup-pixi] + - !reference [.snippets, apt-install-libgl] -- GitLab