add doc to regression tree example #47
Workflow file for this run
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
name: Build, test and deploy | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
PYTHONWARNINGS: all | |
jobs: | |
main: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python: [3.11, 3.12, 3.13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}- | |
- name: Install dependencies | |
run: pip install -r requirements.txt -r requirements-dev.txt | |
- name: Build package | |
run: pip install -e . | |
- name: Check formatting | |
run: black --check fuzzytree examples | |
- name: Run tests | |
run: pytest fuzzytree | |
- name: Build docs | |
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.13 | |
run: | | |
make -C doc/ html | |
touch doc/_build/html/.nojekyll | |
- name: Deploy docs | |
uses: JamesIves/github-pages-deploy-action@v4 | |
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.13 | |
with: | |
branch: gh-pages | |
folder: doc/_build/html |