-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mirkobunse-devel' into devel
- Loading branch information
Showing
53 changed files
with
185 additions
and
14,380 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- devel | ||
|
||
jobs: | ||
|
@@ -31,3 +31,34 @@ jobs: | |
python -m pip install -e .[bayes,composable,tests] | ||
- name: Test with unittest | ||
run: python -m unittest | ||
|
||
# build and push documentation to gh-pages (only if pushed to the master branch) | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build documentation | ||
uses: ammaraskar/sphinx-action@master | ||
with: | ||
pre-build-command: | | ||
apt-get --allow-releaseinfo-change update -y && apt-get install -y git && git --version | ||
python -m pip install --upgrade pip setuptools wheel "jax[cpu]" | ||
python -m pip install -e .[composable,neural,docs] | ||
docs-folder: "docs/" | ||
- name: Publish documentation | ||
run: | | ||
git clone ${{ github.server_url }}/${{ github.repository }}.git --branch gh-pages --single-branch __gh-pages/ | ||
cp -r docs/build/html/* __gh-pages/ | ||
cd __gh-pages/ | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -am "Documentation based on ${{ github.sha }}" || true | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
branch: gh-pages | ||
directory: __gh-pages/ | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
build/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.