Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Nov 29, 2023
1 parent b9b1068 commit 4ec3aac
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build_conda_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ jobs:
CONSTRAINTS="cpuonly"
fi
# From Conda documnetation:
# https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/channels.html#specifying-channels-when-installing-packages
# From the command line use --c
# You may specify multiple channels by passing the argument multiple times.
# Priority decreases from left to right - the first argument is higher priority than the second.
# From the command line use --override-channels to only search the specified channel(s),
# rather than any channels configured in .condarc.
${CONDA_RUN_SMOKE} conda install \
--yes \
--quiet \
Expand All @@ -192,7 +200,6 @@ jobs:
--override-channels
# check for installed package channel
${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME}
if [[ -z "$(${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME} | grep ${CONDA_LOCAL_CHANNEL})" ]]; then
echo "${PACKAGE_NAME} is not installed from local channel"
${CONDA_RUN_SMOKE} conda list
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/build_conda_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ jobs:
export PATH="${CONDA_ENV_SMOKE}/bin:${PATH}"
CONDA_LOCAL_CHANNEL="file://$(readlink -f ${{ inputs.repository }}/distr)"
# From Conda documnetation:
# https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/channels.html#specifying-channels-when-installing-packages
# From the command line use --c
# You may specify multiple channels by passing the argument multiple times.
# Priority decreases from left to right - the first argument is higher priority than the second.
# From the command line use --override-channels to only search the specified channel(s),
# rather than any channels configured in .condarc.
${CONDA_RUN_SMOKE} conda install \
--quiet \
Expand All @@ -194,9 +201,7 @@ jobs:
"${PACKAGE_NAME}" \
"--override-channels"
# check for installed package
${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME}
# check for installed package channel
if [[ -z "$(${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME} | grep ${CONDA_LOCAL_CHANNEL})" ]]; then
echo "${PACKAGE_NAME} is not installed from local channel"
${CONDA_RUN_SMOKE} conda list
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/build_conda_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ jobs:
CONSTRAINTS="cpuonly"
fi
# From Conda documnetation:
# https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/channels.html#specifying-channels-when-installing-packages
# From the command line use --c
# You may specify multiple channels by passing the argument multiple times.
# Priority decreases from left to right - the first argument is higher priority than the second.
# From the command line use --override-channels to only search the specified channel(s),
# rather than any channels configured in .condarc.
${CONDA_RUN_SMOKE} conda install \
--quiet \
--yes \
Expand All @@ -212,7 +220,6 @@ jobs:
--override-channels
# check for installed package channel
${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME}
if [[ -z "$(${CONDA_RUN_SMOKE} conda list | grep ${PACKAGE_NAME} | grep ${CONDA_LOCAL_CHANNEL})" ]]; then
echo "${PACKAGE_NAME} is not installed from local channel"
${CONDA_RUN_SMOKE} conda list
Expand Down

0 comments on commit 4ec3aac

Please sign in to comment.