-
Notifications
You must be signed in to change notification settings - Fork 29
36 lines (34 loc) · 1.06 KB
/
docs-guide-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test Docs Guide
on: [pull_request, merge_group]
permissions:
contents: write
jobs:
build-and-test:
name: Docs Guide Build
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
if: github.repository_owner == 'Qiskit'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Non-Python Dependencies
run: sudo apt-get install -y pandoc graphviz
- name: Install tox
run: python -m pip install -U tox
- name: Test Code Examples
run: tox run -e doctest
- name: Build Docs Guide
run: tox run -e docs-guide
- name: Compress Artifacts
run: |
mkdir artifacts
tar -zcvf html_docs.tar.gz docs_guide/_build/html
mv html_docs.tar.gz artifacts/.
- uses: actions/upload-artifact@v4
with:
name: html_docs
path: artifacts