Fix n_threads and elastic net abs_grad definition #98
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
name: Build Documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install pandoc | |
run: | | |
sudo wget https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-amd64.deb -O /tmp/pandoc-3.1.8-1-amd64.deb | |
sudo dpkg -i /tmp/pandoc-3.1.8-1-amd64.deb | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.3.1-0' | |
environment-file: environment.yml | |
init-shell: >- | |
bash | |
powershell | |
post-cleanup: 'all' | |
- name: Set up dependencies | |
run: | | |
poetry install --without test,dev --no-root | |
- name: Install adelie | |
run: | | |
pip install -e . | |
python -c "import adelie" | |
# Standard drop-in approach that should work for most people. | |
- name: Build documentation | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git checkout gh-pages | |
git merge -X theirs origin/main | |
cd docs | |
rm -rf _images _sources _static .doctrees generated notebooks *.html *.inv *.js .buildinfo | |
cd sphinx | |
make clean && make html | |
cp -r _build/html/* .. | |
touch .nojekyll | |
# Publish built docs to gh-pages branch. | |
# =============================== | |
- name: Commit documentation changes | |
run: | | |
git add . | |
git commit -m "Update documentation" -a || true | |
# The above command will fail if no changes were present, so we ignore | |
# that. | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: gh-pages | |
directory: docs | |
github_token: ${{ secrets.ACTIONS_TOKEN }} | |
# =============================== |