feat(ci): pass the version of the released wheel to the test workflow

This commit is contained in:
Ayoub Benaissa
2024-06-26 08:18:33 +00:00
committed by Ayoub Benaissa
parent 26c3ecc5f7
commit 953c9b60b6
2 changed files with 11 additions and 3 deletions

View File

@@ -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
@@ -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 }}"

View File

@@ -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