Skip to content
Snippets Groups Projects
Commit 79f961df authored by Jan David Mol's avatar Jan David Mol
Browse files

Create a virtual environment before using pip install

parent 7f427628
No related branches found
No related tags found
1 merge request!811Create a virtual environment before using pip install
...@@ -65,6 +65,7 @@ wheel_packaging: ...@@ -65,6 +65,7 @@ wheel_packaging:
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi fi
- apk add --update make bash docker-compose python3 py3-pip - apk add --update make bash docker-compose python3 py3-pip
- python3 -m venv venv && source venv/bin/activate
- pip install shyaml - pip install shyaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- touch ~/.Xauthority - touch ~/.Xauthority
...@@ -286,6 +287,7 @@ unit_test: ...@@ -286,6 +287,7 @@ unit_test:
- apk add --update bind-tools - apk add --update bind-tools
- apk add --update postgresql14-client gzip socat - apk add --update postgresql14-client gzip socat
- apk add --update python3 py3-pip - apk add --update python3 py3-pip
- python3 -m venv venv && source venv/bin/activate
- pip install shyaml - pip install shyaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- touch /root/.Xauthority - touch /root/.Xauthority
...@@ -351,6 +353,7 @@ publish_on_gitlab: ...@@ -351,6 +353,7 @@ publish_on_gitlab:
before_script: before_script:
- python3 --version - python3 --version
- pip --version - pip --version
- python3 -m venv venv && source venv/bin/activate
- pip install twine --upgrade - pip install twine --upgrade
script: script:
- echo "run twine for gitlab" - echo "run twine for gitlab"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment