This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
Pytket Ionq Docs #50
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
name: Pytket Ionq Docs | |
on: | |
push: | |
branches: | |
- 'docs/**' | |
schedule: | |
# 04:00 every Tuesday morning | |
- cron: '0 4 * * 2' | |
jobs: | |
docs: | |
name: build docs | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Upgrade pip and install wheel | |
run: pip install --upgrade pip wheel | |
- name: Install pytket ionq | |
run: | | |
pip install . | |
- name: Install docs dependencies | |
run: | | |
pip install -r .github/workflows/docs/requirements.txt | |
- name: Test building docs | |
timeout-minutes: 20 | |
run: | | |
cd .github/workflows/docs | |
mkdir extensions | |
./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: pytket-extension-docs | |
path: .github/workflows/docs/extensions/ |