Skip to content

Commit

Permalink
Feat: Workflow to release benchq to PyPi (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianMorawiec authored Jul 25, 2023
1 parent a8642ad commit dff1caf
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-python-wheel-via-cicd-actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Push Python Wheel by triggering cicd-actions workflow via Github API Call

on:
release:
types: [published]

jobs:
trigger-build-and-push:
runs-on: ubuntu-latest
steps:
- name: Trigger cicd-actions repository workflow over Github API
run: |
curl -L \
"https://api.github.com/repos/zapatacomputing/cicd-actions/actions/workflows/30157612/dispatches" \
-H "Authorization: token "$USER_TOKEN \
-H 'Accept: application/vnd.github+json' \
--fail-with-body \
--data-raw '
{
"ref": "main",
"inputs":
{
"repository": "'"$repository"'",
"ref": "'"$ref"'",
"package_directory": "'"$package_directory"'",
"pypi": "true",
"pypitest": "false",
"nexus": "false"
}
}
'
env:
USER_TOKEN: ${{ secrets.PAGES_TOKEN }}
repository: ${{github.repository}}
ref: ${{ github.ref_name }}
package_directory: "."
github_sha: ${{ github.sha }}
build_number: ${{ github.run_number }}
push_pypi: ${{ github.event.inputs.pypi }}
push_pypitest: ${{ github.event.inputs.pypitest }}
push_nexus: ${{ github.event.inputs.nexus }}
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ install_requires =
numpy>=1.20
more-itertools~=9.1.0
pandas==1.5.3
pyLIQTR @ git+https://github.com/isi-usc-edu/pyLIQTR.git
pyLIQTR==0.3.3
openfermion~=1.5.0
pytest # required by OpenFermion's resource_estimates module
graph-state-generation @ git+https://github.com/sfc-aqua/gosc-graph-state-generation
graph-state-generation==0.2.0
juliapkg==0.1.10
juliacall~=0.9.10
h5py~=3.8.0
Expand Down

0 comments on commit dff1caf

Please sign in to comment.