Use numpy 2.0 for docs #499
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: Documentation | |
on: | |
push: | |
branches: [ main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install mikeio | |
run: | | |
pip install .[dev] | |
- name: Install pinned version of Numpy | |
# Numpy 2.1 causes problems with shapely | |
run: | | |
pip install numpy==2.0.0 | |
- name: Build documentation | |
run: | | |
make docs | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3.6.1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_site/ |