Skip to content
Snippets Groups Projects
Commit d1987f46 authored by Benedikt's avatar Benedikt
Browse files

added proxy config

parent 66313d25
No related branches found
No related tags found
No related merge requests found
Pipeline #50502 failed
image: python:3.10 image: python:3.10 # or python:3.11 if needed
stages: stages:
- test - test
...@@ -7,6 +7,9 @@ stages: ...@@ -7,6 +7,9 @@ stages:
variables: variables:
PIP_DISABLE_PIP_VERSION_CHECK: "1" PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
HTTP_PROXY: "http://webproxy.bs.ptb.de:8080"
HTTPS_PROXY: "http://webproxy.bs.ptb.de:8080"
NO_PROXY: "*.ptb.de"
cache: cache:
paths: paths:
...@@ -15,18 +18,19 @@ cache: ...@@ -15,18 +18,19 @@ cache:
before_script: before_script:
- python -m venv venv - python -m venv venv
- source venv/bin/activate - source venv/bin/activate
- pip config set global.proxy $HTTP_PROXY # Ensure pip respects the proxy
- pip install -U pip setuptools wheel - pip install -U pip setuptools wheel
- pip install -e .[dev] # Install core dependencies for testing
test_default: test_default:
stage: test stage: test
script: script:
- pip install .[dev] # Install test dependencies
- pytest --junitxml=report.xml --cov=dccXMLJSONConv - pytest --junitxml=report.xml --cov=dccXMLJSONConv
test_web: test_web:
stage: test stage: test
script: script:
- pip install -e .[web] # Install Web API dependencies - pip install .[web] # Install Web API dependencies
- pytest --junitxml=report_web.xml --cov=dccXMLJSONConv - pytest --junitxml=report_web.xml --cov=dccXMLJSONConv
build: build:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment