Commit 6aaafff4 authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Merge branch 'cicd_gitlab_tmp' into 'slb-code-push'

adding pipeline

See merge request !1
parents 4d3f9806 10978227
Pipeline #22287 passed with stage
in 21 seconds
default:
image: python:3.7-slim-buster
stages:
- test
- deploy
build:
stage: test
script:
- pip3 install -r requirements.txt
- pip3 install -r requirements_tests.txt
- pytest test --junitxml=report.xml
artifacts:
when: always
reports:
junit: report.xml
# This job only runs on master, and it creates the lib and push it to the feed
deploylib:
stage: deploy
script:
- pip3 install -r requirements.txt
- pip3 install twine
- python3 setup.py sdist bdist_wheel
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
rules:
- if: $CI_COMMIT_BRANCH == 'master'
......@@ -76,7 +76,8 @@ async def test_validation_error(storage_client):
id="my_id",
)
assert exc_info.value.content == json.dumps(invalid_record).encode("utf-16")
assert exc_info.value.headers == httpx.Headers({"Content-Type": "application/json, charset=utf-16"})
assert exc_info.value.headers == httpx.Headers({"Content-Type": "application/json, charset=utf-16",
'content-length': '6'})
assert isinstance(exc_info.value.source, pydantic.ValidationError)
unstub()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment