Skip to content

Commit 19704d7

Browse files
Merge pull request #123 from uc-cdis/fix/poetry-remove-gdcdictionary
Fix/poetry remove gdcdictionary
2 parents 49f27b0 + 7e54414 commit 19704d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/dictionary_push.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,18 @@ jobs:
6565
git clone https://github.com/uc-cdis/dictionaryutils
6666
cd dictionaryutils
6767
poetry install -vv --all-extras --no-interaction
68+
echo "Removing 'gdcdictionary' and re-installing in following step"
69+
poetry remove gdcdictionary
6870
- name: Attempt poetry or pip re-install of dictionary as `gdcdictionary`
6971
# install via pip or poetry conditionally
7072
run: |
7173
echo "installing the dictionary as 'gdcdictionary'"
7274
if [ -f setup.py ]; then
73-
pip install -e .
75+
echo "Install via pip"
76+
pip install .
7477
fi
7578
if [ -f pyproject.toml ]; then
79+
echo "Install via poetry"
7680
poetry install -vv --all-extras --no-interaction || true
7781
fi
7882
- name: Run dictionary tests, dump schema, and move to S3
@@ -84,6 +88,8 @@ jobs:
8488
echo "dependencies after run_test"
8589
poetry show
8690
aws s3 cp artifacts/schema.json s3://${{ inputs.BUCKET }}/${{ inputs.DIRECTORY }}/$GITHUB_REF_NAME/schema.json --region ${{ inputs.REGION }}
91+
echo "Schema dir for artifact: "
92+
python -c "from gdcdictionary import SCHEMA_DIR; print(SCHEMA_DIR)"
8793
env:
8894
AWS_ACCESS_KEY_ID: ${{ secrets.DICT_AWS_ACCESS_KEY_ID }}
8995
AWS_SECRET_ACCESS_KEY: ${{ secrets.DICT_AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)