From 67fbc10becad7ef1ae0bb9723b925a5df52f01b1 Mon Sep 17 00:00:00 2001 From: Vincent Michaud-Rioux Date: Fri, 26 Apr 2024 16:31:54 -0400 Subject: [PATCH] Do not install python --- .github/workflows/wheel_linux_x86_64.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/wheel_linux_x86_64.yml b/.github/workflows/wheel_linux_x86_64.yml index 56d8c909c2..53e3ef3739 100644 --- a/.github/workflows/wheel_linux_x86_64.yml +++ b/.github/workflows/wheel_linux_x86_64.yml @@ -173,21 +173,17 @@ jobs: id: pyvs run: | echo "version=$(echo ${{ matrix.cibw_build }} | tr -cd '[:digit:].' | sed 's/./&./1')" >> $GITHUB_OUTPUT - yum install centos-release-scl-rh -y - yum install devtoolset-11-gcc-c++ -y - source /opt/rh/devtoolset-11/enable -y - - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: ${{ steps.pyvs.outputs.version }} - name: Test wheels + if: ${{ (matrix.container_img == 'quay.io/pypa/manylinux2014_x86_64') }} run: | - python -m pip install -r requirements-tests.txt - if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" pip install -e . -vv; fi + yum install centos-release-scl-rh -y + yum install devtoolset-11-gcc-c++ -y + source /opt/rh/devtoolset-11/enable -y + python${{ steps.pyvs.outputs.version }} -m pip install -r requirements-tests.txt + if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" python${{ steps.pyvs.outputs.version }} -m pip install -e . -vv; fi pushd wheelhouse - python -m pip install *.whl + python${{ steps.pyvs.outputs.version }} -m pip install *.whl popd DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` pl-device-test --device=${DEVICENAME} --skip-ops -x --tb=short --no-flaky-report