Skip to content

Commit

Permalink
Merge branch 'master' into 123-fix-default-qc-wire-map
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Sep 19, 2023
2 parents 1e75d92 + f4b7472 commit 4a8e002
Show file tree
Hide file tree
Showing 24 changed files with 171 additions and 337 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/changelog_template.txt

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: pip install black
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run post-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_rigetti/_version.py"
--changelog_path "./CHANGELOG.md" --post_release
version_path: "./pennylane_rigetti/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "post_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand All @@ -35,5 +26,5 @@ jobs:
title: Version Bump
body: updated changelog and _version.py
branch: post-release-version-bump
reviewers: antalszava
reviewers: timmysilv
base: master
21 changes: 6 additions & 15 deletions .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,12 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run pre-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_rigetti/_version.py"
--changelog_path "./CHANGELOG.md" --pre_release
version_path: "./pennylane_rigetti/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "pre_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand All @@ -34,5 +25,5 @@ jobs:
title: Version Bump
body: updated changelog and _version.py
branch: pre-release-version-bump
reviewers: antalszava
reviewers: timmysilv
base: master
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.10"]
python-version: ["3.9", "3.11"]

steps:
- name: Cancel Previous Runs
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.10"]
python-version: ["3.9", "3.11"]

steps:
- name: Cancel Previous Runs
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,30 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Run Forest Quilc
run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R

- name: Run Forest QVM
run: docker run --rm -d -p 5000:5000 rigetti/qvm -S

- name: Install plugin and test dependencies
- name: Build and install Plugin
run: |
python -m pip install --upgrade pip wheel
python setup.py bdist_wheel
pip install dist/PennyLane*.whl
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install '.[test]'
- name: Run tests
run: |
python -m pytest tests --tb=native
- name: Publish
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
179 changes: 0 additions & 179 deletions .github/workflows/vb_script.py

This file was deleted.

7 changes: 5 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ formats:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
install:
- requirements: doc/requirements.txt
- method: pip
path: .

build:
image: latest
os: ubuntu-22.04
tools:
python: "3.9"
apt_packages:
- graphviz
Loading

0 comments on commit 4a8e002

Please sign in to comment.