mirror of
https://github.com/zama-ai/concrete.git
synced 2026-05-09 03:00:34 -04:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.1.7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.6.0...692973e3d937129bcbf40652eb9f2f61becf3332) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
name: Concrete Python Test GPU Wheel
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
instance_id:
|
|
description: 'Instance ID'
|
|
type: string
|
|
instance_image_id:
|
|
description: 'Instance AMI ID'
|
|
type: string
|
|
instance_type:
|
|
description: 'Instance product type'
|
|
type: string
|
|
runner_name:
|
|
description: 'Action runner name'
|
|
type: string
|
|
request_id:
|
|
description: 'Slab request ID'
|
|
type: string
|
|
user_inputs:
|
|
description: 'version of CP to test. It should be available in Zama PyPI'
|
|
required: true
|
|
type: string
|
|
|
|
env:
|
|
CP_VERSION: ${{ inputs.user_inputs }}
|
|
|
|
jobs:
|
|
test-linux-x86:
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
fail-fast: false
|
|
runs-on: ${{ github.event.inputs.runner_name }}
|
|
steps:
|
|
- name: Setup Python
|
|
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install CP
|
|
run: pip install --pre --extra-index-url https://pypi.zama.ai/gpu/ "concrete-python==${{ env.CP_VERSION }}"
|
|
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
with:
|
|
path: repo
|
|
|
|
- name: Test wheel
|
|
run: |
|
|
CONCRETE_PYTHON=$(pwd)/repo/frontends/concrete-python
|
|
|
|
# Install extra requirements for tests
|
|
sudo apt update -y
|
|
sudo apt install -y graphviz libgraphviz-dev
|
|
pip install -r $CONCRETE_PYTHON/requirements.extra-full.txt
|
|
pip install -r $CONCRETE_PYTHON/requirements.dev.txt
|
|
|
|
# Running tests
|
|
cd $CONCRETE_PYTHON
|
|
make pytest-gpu
|