Automated Latest Dependency Updates #4990
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 Docs | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
PYARROW_IGNORE_TIMEZONE: 1 | |
JAVA_HOME: "/usr/lib/jvm/java-11-openjdk-amd64" | |
jobs: | |
build_docs: | |
name: ${{ matrix.python_version }} build docs | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Set up python ${{ matrix.python_version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ matrix.python_version }}-docs-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01 | |
- name: Build featuretools package | |
run: | | |
make package | |
- name: Install complete version of featuretools from sdist (not using cache) | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
python -m pip install "unpacked_sdist/[dev]" | |
- name: Install complete version of featuretools from sdist (using cache) | |
if: steps.cache.outputs.cache-hit == 'true' | |
run: | | |
python -m pip install "unpacked_sdist/[dev]" --no-deps | |
- name: Install apt packages | |
run: | | |
sudo apt update | |
sudo apt install -y pandoc | |
sudo apt install -y graphviz | |
python -m pip check | |
- name: Build docs | |
run: make -C docs/ -e "SPHINXOPTS=-W -j auto" clean html |