Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs and CI fixes #27

Merged
merged 9 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,4 @@ jobs:
- name: Environment Information
run: |
mamba info
mamba list --show-channel-urls

- name: Build Documentation
run: |
python -m pip install . --no-deps
cd docs
make html

- name: GitHub Pages Deploy
uses: JamesIves/[email protected]
if: github.event_name == 'push' && github.repository == 'CCQC/PES-Learn' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
with:
branch: gh-pages
folder: docs/build/html
mamba list --show-channel-urls
48 changes: 48 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Documentation

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
# Build job
build:
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Create Environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: docs-env
environment-file: docs/requirements.yml
python-version: ${{ matrix.cfg.python-version }}
miniforge-variant: Mambaforge
use-mamba: true
add-pip-as-python-dependency: true
channels: conda-forge

- name: Conda Environment
run: |
mamba info
mamba list

- name: Build Documentation
run: |
cd docs
make html

- name: GitHub Pages Deploy
uses: JamesIves/[email protected]
if: github.event_name == 'push' && github.repository == 'CCQC/PES-Learn' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
with:
branch: gh-pages
folder: docs/build/html
2 changes: 1 addition & 1 deletion docs/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
- pandas >=0.24
- hyperopt >=0.1.1
- cclib >=1.6
- torch >=1.0.1
- pytorch >=1.0.1
- joblib >=1.3.0
- qcelemental >=0.27.1
- qcengine >=0.26.0
Loading