Skip to content

Remove flake8

Remove flake8 #306

Workflow file for this run

name: Build and Deploy docs
# no permissions by default
permissions: {}
on:
pull_request:
push:
branches:
- main
release:
types:
- published
jobs:
build-docs:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash -l {0}
steps:
- name: checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Install windrose
run: |
python -m pip install -e .[extras,tests,docs]
- name: Build documentation
run: |
set -e
jupyter nbconvert --to notebook --execute notebooks/usage.ipynb --output=usage-output.ipynb
mv notebooks/*output.ipynb docs/
pushd docs
make clean html linkcheck
popd
- name: Deploy
if: success() && github.event_name == 'release'
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html