-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
3 changed files
with
72 additions
and
38 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,29 +2,54 @@ name: Documentation | |
|
||
on: pull_request | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
|
||
jobs: | ||
make-pages: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.9'] | ||
- name: install sphinx dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
python -m pip install sphinx | ||
python -m pip install sphinx_rtd_theme | ||
python -m pip install sphinx-click | ||
- name: build documentation | ||
run: | | ||
cd docs | ||
make html | ||
- name: deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html | ||
force_orphan: true | ||
full_commit_message: ${{ github.event.head_commit.message }} | ||
runs-on: ubuntu-latest | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.9'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: select python version | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: checkout rest2 | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: nrel/rest2 | ||
ssh-key: ${{ secrets.SSH_KEY }} | ||
path: rest2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install rest2 dependencies | ||
working-directory: ./rest2 | ||
shell: bash -l {0} | ||
run: | | ||
conda install pip | ||
pip install -e . | ||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
python -m pip install sphinx | ||
python -m pip install sphinx_rtd_theme | ||
python -m pip install sphinx-click | ||
- name: build documentation | ||
run: | | ||
cd docs | ||
make html | ||
- name: deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html | ||
force_orphan: true | ||
full_commit_message: ${{ github.event.head_commit.message }} |
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
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ matplotlib | |
NREL-cloud_fs>=0.0.8 | ||
NREL-farms>=1.0.5 | ||
NREL-reV<0.8.0 | ||
NREL-rest2>=1.0.1 | ||
scikit-learn>=1.0 |