Skip to content
Snippets Groups Projects
Verified Commit e3824146 authored by Lars Bilke's avatar Lars Bilke
Browse files

[project,ci] Moved pip extra index to from env (global) var to pip install.

parent bf9e87fa
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ stages:
variables:
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
DOCKER_IMAGE: registry.opengeosys.org/ogs/tools/ogstools/ci-python-3.9
PIP_EXTRA_INDEX_URL: https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple
workflow:
rules:
......@@ -50,7 +49,7 @@ tests feflow:
image: registry.opengeosys.org/ogs/tools/feflow-python-docker:8.0.1
script:
- python -m venv .venv --upgrade-deps
- .venv/bin/pip install -e .[dev,test,docs,feflow]
- .venv/bin/pip install --extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple -e .[dev,test,docs,feflow]
- make setup_headless
- source .venv/bin/activate
- make coverage
......@@ -67,7 +66,7 @@ tests win:
before_script:
- python -m venv .venv
- .venv\Scripts\Activate.ps1
- pip install -e ".[dev,test]"
- pip install --extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple -e ".[dev,test]"
script:
- tox -p
# Bug: -e docs only works on Windows when called from docs/-dir.
......
......@@ -5,7 +5,7 @@ help: ## Show this help
setup: ## Setup a virtual environment and install all development dependencies
python -m venv .venv --upgrade-deps
.venv/bin/pip install -e .[dev,test,docs]
.venv/bin/pip install --extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple -e .[dev,test,docs]
.venv/bin/pre-commit install
@echo
@echo ATTENTION: You need to activate the virtual environment in every shell with:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment