Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Lib
Wellbore-core
Wellbore-client-storage
Commits
6aaafff4
Commit
6aaafff4
authored
Oct 02, 2020
by
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
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
6aaafff4
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'
test/exception_test.py
View file @
6aaafff4
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment