Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ jobs:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_READONLY_TOKEN: ${{ secrets.DOCKERHUB_READONLY_TOKEN }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
with:
platform: linux/${{ matrix.platform }}
python_version: ${{ matrix.python_version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ jobs:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_READONLY_TOKEN: ${{ secrets.DOCKERHUB_READONLY_TOKEN }}
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
with:
platform: ${{ fromJson(needs.metadata.outputs.platforms)[format('{0}', matrix.platform)].docker_flag }}
python_version: ${{ matrix.python_version }}
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/python_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ on:
required: true
DOCKERHUB_READONLY_TOKEN:
required: true
ANACONDA_TOKEN:
required: true

name: Python wheels

Expand Down Expand Up @@ -263,11 +265,8 @@ jobs:
fi
done

# TODO: enable
# if: matrix.os_image == 'redhat/ubi9:9.2'
# once conda license issues are resolved
- name: Run Python MPI tests
if: false
if: matrix.os_image == 'redhat/ubi9:9.6'
uses: ./.github/actions/run-in-docker
with:
image: wheel_validation:local
Expand All @@ -287,6 +286,13 @@ jobs:
~/miniconda3/bin/conda init bash
source ~/.bashrc

# we have to accept the channels in order to install the package to sign in
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

conda install --name base anaconda-auth --yes
anaconda auth ${{ secrets.ANACONDA_TOKEN }}

# Extract the setup script from Python wheel's readme
cudaq_wheel=/tmp/cuda_quantum_cu*-manylinux_*_$(uname -m).whl
wheelname=${cudaq_wheel##*/} && archive_name=${wheelname%.*}.zip
Expand All @@ -302,10 +308,12 @@ jobs:
line=$(echo $line | sed -E "s/python(=)?3.[0-9]{1,}/python\1${{ inputs.python_version }}/g")
# Install the wheel file
line=${line//pip install cuda-quantum-cu${cuda_major}/pip install ${cudaq_wheel}}
echo "+ $line"
eval "$line"
done <<< "$conda_script"
ompi_script="$(awk '/(Begin ompi setup)/{flag=1;next}/(End ompi setup)/{flag=0}flag' $metadata | grep . | sed '/^```/d')"
while IFS= read -r line; do
echo "+ $line"
eval "$line"
done <<< "$ompi_script"

Expand Down
Loading