-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs to include polygon tutorial (#355)
* docs building correctly again * drop beta announcement * cleaning up docs a bit * i think this is where it was at... * bump beta in readme announcement * update action * pssssst. it's a secret * separate upload docs step * setps taken * want --warningiserror * need requirements for notebook * no need to run linter here * does this default thing work? * alas, chatgpt led me astray * gimme an artifact to check * bump to actions/[email protected] * slightly better names * artifacts need names now * set python version for sdist * try this one * all unique names * try cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} * try merge action * try combining sdist and wheels into single result * upload should work * bump to pypa/[email protected] * try pypa/[email protected] * Revert "try pypa/[email protected]" This reverts commit fa8f7c9. * SDist doesn't need a strategy matrix * shorten names for cibw * bump actions/[email protected]
- Loading branch information
Showing
12 changed files
with
117 additions
and
97 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: build_docs | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: ['*'] | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.in | ||
pip install -r requirements-dev.txt | ||
pip install .[all] | ||
- name: Build the book | ||
run: jupyter-book build docs/ --warningiserror --keep-going --all | ||
|
||
- name: Upload artifacts to GitHub | ||
uses: actions/[email protected] | ||
with: | ||
name: html | ||
path: docs/_build/html | ||
|
||
deploy-docs: | ||
needs: [build-docs] | ||
runs-on: ubuntu-22.04 | ||
if: github.event.pull_request.merged | ||
|
||
steps: | ||
- uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
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 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 |
---|---|---|
|
@@ -19,13 +19,8 @@ on: | |
|
||
jobs: | ||
make_sdist: | ||
name: 'SDist: ${{ matrix.os }}' | ||
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -34,6 +29,8 @@ jobs: | |
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Make sdist | ||
run: | | ||
|
@@ -52,12 +49,13 @@ jobs: | |
run: pytest --cov=h3 --full-trace | ||
|
||
- name: Upload artifacts to GitHub | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4.3.1 | ||
with: | ||
name: temp_result_sdist | ||
path: ./dist | ||
|
||
make_cibw_v2_wheels: | ||
name: 'cibuildwheel v2: ${{ matrix.name }}' | ||
make_wheels: | ||
name: 'cibuildwheel: ${{ matrix.name }}' | ||
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -133,21 +131,35 @@ jobs: | |
pipx run twine check wheelhouse/* | ||
- name: Upload artifacts to GitHub | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4.3.1 | ||
with: | ||
name: temp_result_${{ matrix.os }}-${{ strategy.job-index }} | ||
path: wheelhouse/*.whl | ||
|
||
upload_all: | ||
needs: [make_sdist, make_cibw_v2_wheels] | ||
runs-on: ubuntu-22.04 | ||
merge: | ||
needs: [make_sdist, make_wheels] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Merge Artifacts | ||
uses: actions/upload-artifact/merge@v4 | ||
with: | ||
name: wheels_and_sdist | ||
pattern: temp_result_* | ||
delete-merged: true | ||
retention-days: 7 | ||
compression-level: 9 | ||
|
||
to_pypi: | ||
needs: [merge] | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4.1.4 | ||
with: | ||
name: artifact | ||
name: wheels_and_sdist | ||
path: dist | ||
|
||
- uses: pypa/gh-action-pypi-publish@v1.5.1 | ||
- uses: pypa/gh-action-pypi-publish@v1.8.14 | ||
with: | ||
password: ${{ secrets.pypi_password }} |
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
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
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,19 @@ | ||
# Project Links | ||
|
||
## H3 | ||
|
||
Links for the overall H3 project including the core C library and all language bindings (including | ||
Python!). | ||
|
||
- [H3 Project Homepage](https://h3geo.org/) | ||
- [H3 on GitHub](https://github.com/uber/h3) | ||
- [H3 Project GitHub Discussions](https://github.com/uber/h3/discussions) | ||
- [H3 on Stack Overflow](https://stackoverflow.com/questions/tagged/h3) | ||
- [H3 on Slack](https://join.slack.com/t/h3-core/shared_invite/zt-g6u5r1hf-W_~uVJmfeiWtMQuBGc1NNg) | ||
|
||
## h3-py | ||
|
||
Links specific to the H3 Python bindings. | ||
|
||
- [Example Notebooks](https://github.com/uber/h3-py-notebooks) | ||
- [h3-py on GitHub](https://github.com/uber/h3-py) |
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