Skip to content
Snippets Groups Projects
Commit f9732df4 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

test package check

parent e0ff2598
No related branches found
Tags 2.8.0
2 merge requests!1605Merge 2.8.2.3 work to main,!1492tweak the pipeline
Pipeline #12463 failed
......@@ -24,7 +24,7 @@ variables:
POSTGRES_DB: archive
POSTGRES_USER: "archive"
POSTGRES_PASSWORD: "docker"
RELEASE_VERSION: 2.8.2.1.dev1
RELEASE_VERSION: 2.8.2.1.rc1
image: docker:19.03.12
......
......@@ -2,6 +2,8 @@
.build-package:
image: python:3.10
script:
- echo installing jq
- apt-get install jq
# Enter the package directory
- echo building package in $PACKAGE_PATH
- export CAPO_PATH=$PWD
......@@ -14,6 +16,15 @@
- ln -s "$(which python3)" /home/ssa/bin/python3.10
- export PATH=$PATH:/home/ssa/bin
# look to see if there is a conflicting version in pypi registry
- PACKAGE_NAME='basename $PWD'
- >-
RESPONSE=$(curl --header "PRIVATE-TOKEN: ${API_TOKEN}"
"https://gitlab.nrao.edu/api/v4/projects/$CI_PROJECT_ID/packages?package_type=pypi&package_name=$PACKAGE_NAME"
| jq '.[] | {"name": .name, "version": .version, "url":._links.delete_api_path}
| select(.version=="${RELEASE_VERSION}")')
- echo $RESPONSE
# Install build, poetry and pytest
- pip install poetry
- poetry env use /home/ssa/bin/python3.10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment