-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (35 loc) · 1010 Bytes
/
build_doc.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
37
38
39
40
41
42
43
name: "Test and deploy"
on:
push:
branches:
[ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10.5
uses: actions/setup-python@v2
with:
python-version: 3.10.5
- name: Install dependencies
run: |
pip install -e .[doc]
sudo apt-get install build-essential graphviz libgraphviz-dev
pip install --upgrade pygraphviz graphviz
- name: Test with pytest
run:
py.test --cov macapype --ignore=examples/ --ignore=run_examples/
- name: Build the Doc 🔧
run: |
cd docs
make clean
make html
touch _build/html/.nojekyll
- name: Deploy Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: docs/_build/html/
clean: true
ssh-key: ${{ secrets.DEPLOY_KEY }}