Skip to content

Commit

Permalink
Merge branch 'master' into test_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmeunier79 authored Nov 22, 2024
2 parents 9e70045 + 032f1f7 commit 04400e7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build_on_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,43 @@ on:

jobs:

build:

name: Build documentation
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 }}

build-n-publish-testpypi:
name: Build and publish Python to Test PyPI
runs-on: ubuntu-latest
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/build_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,43 @@ on:

jobs:

build:

name: Build documentation
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 }}

build-n-publish-pypi:
name: Build and publish Python to PyPI
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion macapype/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.2'
__version__ = '0.4.3-rc2'

0 comments on commit 04400e7

Please sign in to comment.