-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from CQCL/release/0.6.0
Release/0.6.0
- Loading branch information
Showing
21 changed files
with
236 additions
and
85 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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
branches: | ||
- develop | ||
- 'wheel/**' | ||
- 'runci/**' | ||
release: | ||
types: | ||
- created | ||
|
@@ -35,7 +36,6 @@ jobs: | |
fetch-depth: '0' | ||
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/* | ||
- name: Set up Python 3.9 | ||
if: github.event_name == 'pull_request' || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel') || github.event_name == 'schedule' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
@@ -46,7 +46,7 @@ jobs: | |
env: | ||
PYTKET_RUN_REMOTE_TESTS: 1 | ||
- name: Build and test including remote checks (3.9) nomypy | ||
if: (matrix.os != 'macos-12') && (github.event_name == 'pull_request' || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel') || github.event_name == 'schedule') | ||
if: (matrix.os != 'macos-12') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule') | ||
shell: bash | ||
run: | | ||
./.github/workflows/build-test nomypy | ||
|
@@ -98,8 +98,8 @@ jobs: | |
password: ${{ secrets.PYPI_PYTKET_IQM_API_TOKEN }} | ||
verbose: true | ||
|
||
docs: | ||
name: Build and publish docs | ||
build_docs: | ||
name: Build docs | ||
if: github.event_name == 'release' | ||
needs: publish_to_pypi | ||
runs-on: ubuntu-22.04 | ||
|
@@ -117,7 +117,7 @@ jobs: | |
path: wheelhouse | ||
- name: Install pip, wheel | ||
run: pip install -U pip wheel | ||
- name: Install extensions | ||
- name: Install extension | ||
run: for w in `find wheelhouse/ -type f -name "*.whl"` ; do pip install $w ; done | ||
- name: Install docs dependencies | ||
run: | | ||
|
@@ -127,20 +127,24 @@ jobs: | |
run: | | ||
cd .github/workflows/docs | ||
mkdir extensions | ||
./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "«$GITHUB_WORKFLOW» github action" | ||
- name: Check out gh-pages branch | ||
run: git checkout gh-pages | ||
- name: Remove old docs | ||
run: git rm -r --ignore-unmatch docs/api | ||
- name: Add generated docs to repository | ||
run: | | ||
mkdir -p docs | ||
mv .github/workflows/docs/extensions docs/api | ||
git add -f docs/api | ||
git commit --allow-empty -m "Add generated documentation." | ||
- name: Publish docs | ||
run: git push origin gh-pages:gh-pages | ||
./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions/api | ||
- name: Upload docs as artefact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: .github/workflows/docs/extensions | ||
|
||
publish_docs: | ||
name: Publish docs | ||
if: github.event_name == 'release' | ||
needs: build_docs | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,2 +1,3 @@ | ||
sphinx ~= 4.3.2 | ||
sphinx_rtd_theme | ||
sphinx_book_theme | ||
sphinx-copybutton |
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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ build | |
dist | ||
*.pyc | ||
.vscode | ||
.venv | ||
.mypy_cache | ||
.hypothesis | ||
obj | ||
|
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
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
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,2 +1,2 @@ | ||
__extension_version__ = "0.5.0" | ||
__extension_version__ = "0.6.0" | ||
__extension_name__ = "pytket-iqm" |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.wy-side-nav-search, | ||
.wy-nav-top { | ||
background: #5A46BE; | ||
} | ||
|
||
.wy-grid-for-nav, | ||
.wy-body-for-nav, | ||
.wy-nav-side, | ||
.wy-side-scroll, | ||
.wy-menu, | ||
.wy-menu-vertical { | ||
background-color: #FFFFFF; | ||
} | ||
|
||
.wy-menu-vertical a:hover { | ||
background-color: #d9d9d9; | ||
} | ||
|
||
.caption-text { | ||
color: #000000; | ||
} | ||
|
||
.btn-link:visited, | ||
.btn-link, | ||
a:visited, | ||
.a.reference.external, | ||
.a.reference.internal, | ||
.wy-menu-vertical a, | ||
.wy-menu-vertical li, | ||
.wy-menu-vertical ul, | ||
.span.pre, | ||
.sig-param, | ||
.std.std-ref, | ||
a { | ||
color: #544d4d; | ||
} | ||
|
||
:root { | ||
--pst-color-inline-code: 199, 37, 78 !important; | ||
} | ||
|
||
.sig-name { | ||
font-size: 1.25rem; | ||
} |
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
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
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
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
Oops, something went wrong.