Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Remove metapackage-specific parts of documentation (#1788) #1498

Remove metapackage-specific parts of documentation (#1788)

Remove metapackage-specific parts of documentation (#1788) #1498

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Deps
run: python -m pip install -U 'tox<4' setuptools virtualenv wheel pip
- name: Install and Run Tests
run: tox -e py
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Deps
run: python -m pip install -U 'tox<4'
- name: Run lint
run: tox -elint
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install ubuntu Deps
run: sudo apt-get install -y pandoc graphviz
- name: Install python Deps
run: |
python -m pip install -U 'tox<4'
python -m pip install -r requirements-dev.txt
- name: Build Docs
run: tox -edocs
- name: Compress Artifacts
run: |
mkdir artifacts
tar -zcvf html_docs.tar.gz docs/_build/html
mv html_docs.tar.gz artifacts/.
- uses: actions/upload-artifact@v3
with:
name: html_docs
path: artifacts
tutorials:
name: tutorials
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install python Deps
run: python -m pip install -U 'tox<4'
- name: Setup tutorials
run: |
set -e
git clone https://github.com/Qiskit/qiskit-tutorials
pip install -c constraints.txt -U jupyter sphinx nbsphinx networkx qiskit_sphinx_theme 'matplotlib>=3.3.0' qiskit-terra[visualization] cvxpy 'pyscf<1.7.4' scikit-learn qiskit-aer
pip install -c constraints.txt -U .
sudo apt-get install -y pandoc graphviz
- name: Run tutorials
run: |
set -e
cd qiskit-tutorials
sphinx-build -b html . _build/html
env:
QISKIT_CELL_TIMEOUT: 300
- name: Compress Artifacts
run: |
mkdir artifacts
tar -zcvf tutorial_docs.tar.gz qiskit-tutorials/_build/html
mv tutorial_docs.tar.gz artifacts/.
- uses: actions/upload-artifact@v3
with:
name: tutorial_docs
path: artifacts