add build documentation #2
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: "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/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs/build/html/ | |
clean: true | |
ssh-key: ${{ secrets.DEPLOY_KEY }} |