Important PennyLane tests are converted to double as benchmarks #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
concurrency: | ||
group: benchmarks-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
tests: | ||
uses: ./.github/workflows/interface-unit-tests.yml | ||
with: | ||
branch: ${{ github.ref }} | ||
# Run the benchmark tests if the label `ci:run-benchmarks` is attached to the PR. | ||
# Not running it on push events. | ||
run_benchmarks_ci: >- | ||
Check failure on line 20 in .github/workflows/benchmarks.yml GitHub Actions / TestsInvalid workflow file
|
||
${{ | ||
github.event_name == 'pull_request' | ||
&& contains(github.event.pull_request.labels.*.name, 'ci:run-benchmarks') | ||
|| false | ||
}} |