diff --git a/.github/workflows/unit-test-benchmarks.yml b/.github/workflows/unit-test-benchmarks.yml index bad21498a65..c3fce504e3b 100644 --- a/.github/workflows/unit-test-benchmarks.yml +++ b/.github/workflows/unit-test-benchmarks.yml @@ -140,25 +140,25 @@ jobs: pip install -r requirements-dev.txt --upgrade - name: Install PyTorch - if: ${{ (inputs.install_pytorch == true) && (steps.continue.outputs.check == 'true') }} + if: ${{ (inputs.install_pytorch == true) && (steps.continue.outputs.confirm == 'true') }} env: TORCH_VERSION: ${{ inputs.pytorch_version != '' && format('=={0}', inputs.pytorch_version) || '' }} run: pip install "torch${{ env.TORCH_VERSION }}" -f https://download.pytorch.org/whl/torch_stable.html - name: Install TensorFlow - if: ${{ (inputs.install_tensorflow == true) && (steps.continue.outputs.check == 'true') }} + if: ${{ (inputs.install_tensorflow == true) && (steps.continue.outputs.confirm == 'true') }} env: TF_VERSION: ${{ inputs.tensorflow_version != '' && format('~={0}', inputs.tensorflow_version) || '' }} run: pip install "tensorflow${{ env.TF_VERSION }}" "keras${{ env.TF_VERSION }}" - name: Install JAX - if: ${{ (inputs.install_jax == true) && (steps.continue.outputs.check == 'true') }} + if: ${{ (inputs.install_jax == true) && (steps.continue.outputs.confirm == 'true') }} env: JAX_VERSION: ${{ inputs.jax_version != '' && format('=={0}', inputs.jax_version) || '' }} run: pip install "jax${{ env.JAX_VERSION}}" "jaxlib${{ env.JAX_VERSION }}" - name: Install additional PIP packages - if: ${{ (inputs.additional_pip_packages != '') && (steps.continue.outputs.check == 'true') }} + if: ${{ (inputs.additional_pip_packages != '') && (steps.continue.outputs.confirm == 'true') }} run: pip install ${{ inputs.additional_pip_packages }} - name: Install PennyLane @@ -168,7 +168,7 @@ jobs: pip install dist/PennyLane*.whl - name: Install PennyLane-Lightning master - if: ${{ (inputs.install_pennylane_lightning_master == 'true') && (steps.continue.outputs.check == 'true') }} + if: ${{ (inputs.install_pennylane_lightning_master == 'true') && (steps.continue.outputs.confirm == 'true') }} run: pip install -i https://test.pypi.org/simple/ PennyLane-Lightning --pre --upgrade - name: Run PennyLane Benchmarks @@ -180,7 +180,7 @@ jobs: # If this is a PR benchmark, upload the data as an artifact. - name: Upload PR pytest benchmark file - if: ${{ steps.continue.outputs.local_benchmarks == 'true' }} + if: ${{ steps.continue.outputs.local_benchmarks }} uses: actions/upload-artifact@v3 with: name: ${{ inputs.benchmarks_name }} @@ -188,5 +188,5 @@ jobs: # If this is a reference benchmark and we don't hit the cache, move file to the cached directory. - name: Upload reference pytest benchmark file - if: ${{ steps.continue.outputs.reference_benchmarks == 'true' }} + if: ${{ steps.continue.outputs.reference_benchmarks }} run: mkdir -p ${{ github.workspace}}/benchmark_reference && cp benchmarks.json "$_"