From ce5bb45814f6cc1a2f80099b5d1738718d67cb79 Mon Sep 17 00:00:00 2001 From: Daniel K Lyons <dlyons@nrao.edu> Date: Fri, 26 May 2023 16:54:28 -0600 Subject: [PATCH] Another try --- ci/pex-build.template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/pex-build.template.yml b/ci/pex-build.template.yml index f079be003..c262904e4 100644 --- a/ci/pex-build.template.yml +++ b/ci/pex-build.template.yml @@ -6,8 +6,8 @@ - WD=$PWD - cd ${PEX_PATH} - poetry install --with test + - pytest test - NAME=$(awk -F' = ' '/^\[tool.poetry\]/ { project = 1; next } /^\[.*\]/ { project = 0 } project && $1 == "name" { gsub(/"/, "", $2); print $2 }' pyproject.toml) - VERSION=$(sed -n 's/^__version__ = "\(.*\)\"$/\1/p' */__init__.py) - - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${PEX_PATH}/dist/${NAME}-${VERSION}-py3-none-any.whl "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/${NAME}/${VERSION}/${NAME}-${VERSION}-py3-none-any.whl"' - - pytest test + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file dist/${NAME}-${VERSION}-py3-none-any.whl "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/${NAME}/${VERSION}/${NAME}-${VERSION}-py3-none-any.whl"' - cd $WD \ No newline at end of file -- GitLab