Skip to content

Commit

Permalink
Validate poetry for release (#1567)
Browse files Browse the repository at this point in the history
* Validate poetry for release

* test

* test

* fixtypo
  • Loading branch information
atalman committed Oct 6, 2023
1 parent 07efc44 commit eebd2ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/validate_poetry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ if [[ ${MATRIX_CHANNEL} != "release" ]]; then
fi
else
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
poetry source add --priority=explicit pytorch "https://download.pytorch.org/whl/${MATRIX_DESIRED_CUDA}"
if [[ ${TORCH_ONLY} == 'true' ]]; then
poetry --quiet add torch
else
poetry --quiet add torch torchaudio torchvision
poetry --quiet add --source pytorch torch torchaudio torchvision
fi
fi

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ jobs:
eval "$(conda shell.bash hook)"
# Special case PyPi installation package. And Install of PyPi package via poetry
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" ]] && \
([[ ${MATRIX_GPU_ARCH_VERSION} == "12.1" && ${MATRIX_CHANNEL} != "release" ]] || \
[[ ${MATRIX_GPU_ARCH_VERSION} == "11.7" && ${MATRIX_CHANNEL} == "release" ]]); then
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && ${MATRIX_GPU_ARCH_VERSION} == "12.1" ]]; then
source ./.github/scripts/validate_pipy.sh
# temporary disable poetry check
source ./.github/scripts/validate_poetry.sh
fi
Expand Down

0 comments on commit eebd2ce

Please sign in to comment.