Skip to content

Commit

Permalink
feat(ci): pass the version of the released wheel to the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Jun 26, 2024
1 parent 26c3ecc commit b52b773
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/concrete_python_release_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ jobs:
push:
needs: [build-linux-x86]
runs-on: ubuntu-latest
outputs:
wheel_version: ${{ steps.version.outputs.wheel_version }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -155,10 +157,17 @@ jobs:
# update indexes and invalidate cloudfront cache
python .github/workflows/scripts/s3_update_html_indexes.py
- name: Output Wheel Version
id: version
run: |
export VERSION=`ls ./wheels/*manylinux* | head -n1 | cut -d "-" -f2`
echo "VERSION=$VERSION"
echo "wheel_version=$VERSION" >> "$GITHUB_OUTPUT"
test-gpu-wheel:
needs: [push]
uses: ./.github/workflows/start_slab.yml
secrets: inherit
with:
command: concrete-python-test-gpu-wheel
user_inputs: "TODO"
user_inputs: "${{ needs.push.outputs.wheel_version }}"
3 changes: 1 addition & 2 deletions .github/workflows/concrete_python_test_gpu_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# TODO: specify CP version
- name: Install CP
run: pip install --pre --extra-index-url https://pypi.zama.ai/gpu/ concrete-python
run: pip install --pre --extra-index-url https://pypi.zama.ai/gpu/ "concrete-python==${{ env.CP_VERSION }}"

- name: Checkout the repository
uses: actions/checkout@v3
Expand Down

0 comments on commit b52b773

Please sign in to comment.