Skip to content

Commit

Permalink
require docs test on main
Browse files Browse the repository at this point in the history
  • Loading branch information
zulissimeta committed Jul 9, 2024
1 parent bf2b26e commit 6823551
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: documentation
name: build and deploy docs to gh-pages

on:
workflow_call:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docs_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test that docs build

on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install pandoc
run: sudo apt-get install pandoc

# Install dependencies
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f packages/requirements.txt ]; then pip install -r packages/requirements.txt; fi
if [ -f packages/requirements-optional.txt ]; then pip install -r packages/requirements-optional.txt; fi
pip install -e packages/fairchem-core[docs,adsorbml]
pip install -e packages/fairchem-data-oc[dev]
pip install -e packages/fairchem-demo-ocpapi[dev]
pip install -e packages/fairchem-applications-cattsunami
# Build the book
- name: Build the book
run: |
jupyter-book build docs

0 comments on commit 6823551

Please sign in to comment.