feat!: upgrade QCS SDK version #152
This file contains hidden or 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
| on: | |
| pull_request: | |
| types: [opened, reopened, edited, synchronize] | |
| jobs: | |
| benchmark_pr_branch: | |
| name: Continuous Benchmarking PRs with Bencher | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
| permissions: | |
| pull-requests: write | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.9 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: poetry-${{ hashFiles('poetry.lock') }} | |
| - uses: bencherdev/bencher@main | |
| - name: Track PR Benchmarks | |
| run: | | |
| . scripts/ci_install_deps | |
| bencher run \ | |
| --project pyquil \ | |
| --token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
| --branch '${{ github.head_ref }}' \ | |
| --branch-start-point '${{ github.base_ref }}' \ | |
| --branch-start-point-hash '${{ github.event.pull_request.base.sha }}' \ | |
| --testbed ci-runner-linux \ | |
| --err \ | |
| --github-actions '${{ secrets.GITHUB_TOKEN }}' \ | |
| --file results.json \ | |
| poetry run pytest --benchmark-json results.json test/benchmarks |