ci(release): use Python venv in release job
All checks were successful
Test pipeline / test (push) Successful in 15s

This commit is contained in:
Alexander Minges 2025-07-22 12:58:01 +02:00
parent 69c3229fee
commit a8f6e9e7a4
Signed by: Athemis
SSH key fingerprint: SHA256:TUXshgulbwL+FRYvBNo54pCsI0auROsSEgSvueKbkZ4

View file

@ -114,9 +114,11 @@ release:
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs: ["test", "build-package"]
before_script:
- apk add --no-cache git python3 py3-pip
- python3 -m pip install setuptools_scm
- apk add --no-cache git python3 py3-virtualenv
- python3 -m virtualenv venv
- source venv/bin/activate
script:
- pip install setuptools_scm
- |
# Get version from setuptools_scm
VERSION=$(python3 -c "from setuptools_scm import get_version; print(get_version())")