Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 2e80cbb

Browse files
updated pytests according to changes of the gcip.addons.python.jobs.twine_upload() interface
1 parent 79b7a56 commit 2e80cbb

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

tests/unit/comparison_files/test_python_full_stack_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ deploy-twine-upload-dev:
6060
- pip3 install --upgrade twine
6161
- python3 -m twine upload --non-interactive --disable-progress-bar dist/*
6262
variables:
63-
TWINE_USERNAME: $$ARTIFACTORY_DEV_USER
64-
TWINE_PASSWORD: $$ARTIFACTORY_DEV_PASSWORD
63+
TWINE_USERNAME: $ARTIFACTORY_DEV_USER
64+
TWINE_PASSWORD: $ARTIFACTORY_DEV_PASSWORD
6565
TWINE_REPOSITORY_URL: https://my.artifactory.net/pypi/dev-repository
6666
rules:
6767
- if: $CI_COMMIT_TAG
@@ -75,8 +75,8 @@ deploy-twine-upload-stable:
7575
- pip3 install --upgrade twine
7676
- python3 -m twine upload --non-interactive --disable-progress-bar dist/*
7777
variables:
78-
TWINE_USERNAME: $$ARTIFACTORY_PROD_USER
79-
TWINE_PASSWORD: $$ARTIFACTORY_PROD_PASSWORD
78+
TWINE_USERNAME: $ARTIFACTORY_PROD_USER
79+
TWINE_PASSWORD: $ARTIFACTORY_PROD_PASSWORD
8080
TWINE_REPOSITORY_URL: https://my.artifactory.net/pypi/prod-repository
8181
rules:
8282
- if: $CI_COMMIT_TAG

tests/unit/comparison_files/test_python_full_stack_test_with_mypy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ deploy-twine-upload-dev:
6565
- pip3 install --upgrade twine
6666
- python3 -m twine upload --non-interactive --disable-progress-bar dist/*
6767
variables:
68-
TWINE_USERNAME: $$ARTIFACTORY_DEV_USER
69-
TWINE_PASSWORD: $$ARTIFACTORY_DEV_PASSWORD
68+
TWINE_USERNAME: $ARTIFACTORY_DEV_USER
69+
TWINE_PASSWORD: $ARTIFACTORY_DEV_PASSWORD
7070
TWINE_REPOSITORY_URL: https://my.artifactory.net/pypi/dev-repository
7171
rules:
7272
- if: $CI_COMMIT_TAG
@@ -80,8 +80,8 @@ deploy-twine-upload-stable:
8080
- pip3 install --upgrade twine
8181
- python3 -m twine upload --non-interactive --disable-progress-bar dist/*
8282
variables:
83-
TWINE_USERNAME: $$ARTIFACTORY_PROD_USER
84-
TWINE_PASSWORD: $$ARTIFACTORY_PROD_PASSWORD
83+
TWINE_USERNAME: $ARTIFACTORY_PROD_USER
84+
TWINE_PASSWORD: $ARTIFACTORY_PROD_PASSWORD
8585
TWINE_REPOSITORY_URL: https://my.artifactory.net/pypi/prod-repository
8686
rules:
8787
- if: $CI_COMMIT_TAG

tests/unit/test_python_full_stack.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ def test():
99
pipeline.add_children(
1010
python.full_stack(
1111
dev_repository_url="https://my.artifactory.net/pypi/dev-repository",
12-
dev_user="$ARTIFACTORY_DEV_USER",
13-
varname_dev_password="$ARTIFACTORY_DEV_PASSWORD",
12+
dev_user="ARTIFACTORY_DEV_USER",
13+
varname_dev_password="ARTIFACTORY_DEV_PASSWORD",
1414
stable_repository_url="https://my.artifactory.net/pypi/prod-repository",
15-
stable_user="$ARTIFACTORY_PROD_USER",
16-
varname_stable_password="$ARTIFACTORY_PROD_PASSWORD",
15+
stable_user="ARTIFACTORY_PROD_USER",
16+
varname_stable_password="ARTIFACTORY_PROD_PASSWORD",
1717
)
1818
)
1919

@@ -25,11 +25,11 @@ def test_with_mypy():
2525
pipeline.add_children(
2626
python.full_stack(
2727
dev_repository_url="https://my.artifactory.net/pypi/dev-repository",
28-
dev_user="$ARTIFACTORY_DEV_USER",
29-
varname_dev_password="$ARTIFACTORY_DEV_PASSWORD",
28+
dev_user="ARTIFACTORY_DEV_USER",
29+
varname_dev_password="ARTIFACTORY_DEV_PASSWORD",
3030
stable_repository_url="https://my.artifactory.net/pypi/prod-repository",
31-
stable_user="$ARTIFACTORY_PROD_USER",
32-
varname_stable_password="$ARTIFACTORY_PROD_PASSWORD",
31+
stable_user="ARTIFACTORY_PROD_USER",
32+
varname_stable_password="ARTIFACTORY_PROD_PASSWORD",
3333
mypy_package_dir="test_package_dir",
3434
)
3535
)

0 commit comments

Comments
 (0)