From c59dcfa690188979092699d62f84fafb53b0bf77 Mon Sep 17 00:00:00 2001 From: Stephen Nicholas Swatman Date: Sat, 7 Dec 2024 13:29:41 +0100 Subject: [PATCH] fix: Checkout branch in ExaTrk CI Currently, the ExaTrk CI is trying to run a dependency script before having properly checked out the right branch, possible causing a CI error. This commit ensures that the target branch is properly checked out before trying to use any files in the repository. --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e278b18eade..25aff340111 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -155,7 +155,10 @@ test_exatrkx_unittests: - apt-get update -y - git clone $CLONE_URL src - - source src/CI/dependencies.sh + - cd src + - git checkout $HEAD_SHA + - source CI/dependencies.sh + - cd .. - ctest --test-dir build -R ExaTrkX test_exatrkx_python: