Skip to content

Commit

Permalink
test confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko committed Nov 8, 2023
1 parent 186c985 commit 42e7685
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/unit-test-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -180,13 +180,13 @@ 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 }}
path: benchmarks.json

# 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 "$_"

0 comments on commit 42e7685

Please sign in to comment.