From 6977fcd3296c84110a9a1843970c47d8f3f7e570 Mon Sep 17 00:00:00 2001 From: Rey Abolofia Date: Fri, 10 Jan 2025 12:57:31 -0800 Subject: [PATCH] Build _version.py file before running tests. --- .gitlab/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab/tests.yml b/.gitlab/tests.yml index b8c9a3d9897..d027c09d7bf 100644 --- a/.gitlab/tests.yml +++ b/.gitlab/tests.yml @@ -24,10 +24,11 @@ include: retry: 2 before_script: - !reference [.testrunner, before_script] - - pip install riot==0.20.1 + - pip install riot==0.20.1 "setuptools_scm[toml]>=4" script: - export PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --ddtrace" - export _DD_CIVISIBILITY_USE_CI_CONTEXT_PROVIDER=true + - python -m setuptools_scm --force-write-version-files - | envs=( $(hatch env show --json | jq -r --arg suite_name "$SUITE_NAME" 'keys[] | select(. | contains($suite_name))' | sort | ./.gitlab/ci-split-input.sh) ) if [[ ${#envs[@]} -eq 0 ]]; then