Skip to content

Commit

Permalink
Merge pull request #711 from etetoolkit/online_docs
Browse files Browse the repository at this point in the history
Online docs
  • Loading branch information
jordibc committed Sep 20, 2023
2 parents 24700ba + 9598c14 commit 92e09bc
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Pipeline

on:
push:
branches:
- '*'
- '!gh-pages' # excludes master

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout the latest code
- name: Checkout Code
uses: actions/checkout@v2

# Setup Python environment
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

# Install dependencies for your project
- name: Install Dependencies
run: |
pip install -e .[test]
pip install sphinx
# Run tests
- name: Run Tests
run: |
cd tests
pytest test_tree.py
# Build Sphinx documentation
- name: Generate Sphinx Documentation
run: |
cd doc
make html
39 changes: 39 additions & 0 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update github pages docs

on:
push:
branches:
- online_docs

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout the latest code
- name: Checkout Code
uses: actions/checkout@v2

# Setup Python environment
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

# Install dependencies for your project
- name: Install Dependencies
run: |
pip install .
pip install sphinx
# Build Sphinx documentation
- name: Generate Sphinx Documentation
run: |
cd doc
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/_build/html/

0 comments on commit 92e09bc

Please sign in to comment.