File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed
Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+ # Allows you to run this workflow manually from the Actions tab
7+ workflow_dispatch :
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-20.04
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : APT update
19+ run : sudo apt-get update
20+ - name : Install system dependencies
21+ run : sudo apt-get install libgeos-dev libproj-dev
22+ - name : Set up Python 3.9
23+ uses : actions/setup-python@v2
24+ with :
25+ python-version : 3.9
26+ - name : Install build dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install -r requirements.txt
30+ pip install -e .
31+
32+ - name : Generate Python Docs
33+ run : pdoc --html --output-dir docs geoengine
34+
35+ - name : Deploy
36+ uses : peaceiris/actions-gh-pages@v3
37+ if : ${{ github.ref == 'refs/heads/main' }}
38+ with :
39+ github_token : ${{ secrets.GITHUB_TOKEN }}
40+ publish_dir : ./docs/geoengine
41+ cname : python.docs.geoengine.io
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ python3 -m pylint tests
6666
6767Our tip is to activate linting with ` pylint ` in your IDE.
6868
69+ ## Documentation
70+
71+ Generate documentation HTML with:
72+
73+ ``` bash
74+ pdoc3 --html --output-dir docs geoengine
75+ ```
76+
6977## Distribute to PyPI
7078
7179### Test-PyPI
Original file line number Diff line number Diff line change 11build
22cartopy == 0.19.0.post1 # for WMS example
33matplotlib
4+ pdoc3
45pycodestyle # formatter
56pylint # code linter
67pytest
78requests_mock
8- setuptools
99scipy # for WMS example
10+ setuptools
1011twine # PyPI
1112wheel
You can’t perform that action at this time.
0 commit comments