Fix pathway in .Flake8 #64
Workflow file for this run
This file contains hidden or 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 | |
release: | |
# Documentation built but not deployed for pull requests | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: build | |
auto-update-conda: true | |
- name: install requirements | |
run: >- | |
conda install -n build -c conda-forge | |
--file requirements/build.txt | |
--file requirements/run.txt | |
--file requirements/docs.txt | |
--quiet --yes | |
- name: install the package | |
run: python -m pip install . --no-deps | |
- name: build documents | |
run: make -C doc/manual html | |
- name: Deploy | |
# Documentation deployed only on pushes to main and releases | |
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./doc/manual/build/html |