From 4be79448e21b39111b2fe98e47260da87053f916 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 24 Jan 2023 22:37:45 +0100 Subject: [PATCH] [ci] Download LFS submodules during tests --- .gitlab-ci.yml | 6 ++++++ .pre-commit-config.yaml | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfaf903f..94ca4d4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,3 +6,9 @@ include: - project: biosignal/software/dev-profile file: /gitlab/python.yml + +tests: + before_script: + - git submodule sync + - git submodule update --init + - !reference [.snippets, test-prepare] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 35b47504..ca0b0259 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,11 @@ repos: ) - id: check-toml - id: check-yaml - exclude: conda/meta.yaml + exclude: | + (?x)( + ^conda/meta.yaml| + ^.gitlab-ci.yml + ) - id: debug-statements - id: check-case-conflict - id: trailing-whitespace -- GitLab