-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post benchmarking results to slack (#1417)
* Post results to slack * Remove run on PR * Remove documentation * Remove pr comment
- Loading branch information
1 parent
81079f7
commit 9f349bb
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
name: Automated Benchmarks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
|
@@ -77,6 +76,7 @@ jobs: | |
run: | | ||
pip install pytket-*.whl | ||
pip install --pre --index-url https://github_actions:${{ secrets.PRIVATE_PYPI_PASS }}@cqcpythonrepository.azurewebsites.net/simple/ pytket_benchmarking | ||
pip list | ||
- name: Checkout pytket-benchmarking-store | ||
uses: actions/checkout@v4 | ||
|
@@ -98,10 +98,12 @@ jobs: | |
- name: Calculate percentage better | ||
run: echo "RETURN_TEST=$(pytket_benchmarking percentage-better pytket-benchmarking-store/benchmarking_circuits/quantum_volume automated_benchmarks_compiled PytketIBMQ)" >> $GITHUB_ENV | ||
|
||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
- name: Post to a Slack channel | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: '${{ env.RETURN_TEST }}' | ||
channel-id: 'G01CP0YFFA7' | ||
slack-message: '${{ env.RETURN_TEST }}' | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.PYTKET_BENCHMARKING_SLACK_BOT_TOKEN }} | ||
RETURN_TEST: ${{ env.RETURN_TEST }} |