-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf2b26e
commit 6823551
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/docs.yml → .github/workflows/docs_build_push.yml
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
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: | ||
|
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
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 |