Skip to content

Bump pylint from 2.17.6 to 3.0.0 (#613) #81

Bump pylint from 2.17.6 to 3.0.0 (#613)

Bump pylint from 2.17.6 to 3.0.0 (#613) #81

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
paths:
- .github/workflows/docs.yml
- poetry.lock
- scripts/common.sh
- pywemo/**
permissions: {} # No permissions by default. Permissions are added per-job.
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
# NOTE: We use 3.10+ typing syntax via future, which pdoc only
# understands if it's actually run with Python 3.10 or newer.
python-version: ">= 3.10"
- name: Enable build input caching
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: |
./.cache/pip
./.cache/pypoetry
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: setup
env:
OUTPUT_ENV_VAR: GITHUB_OUTPUT
PIP_CACHE_DIR: ./.cache/pip
POETRY_CACHE_DIR: ./.cache/pypoetry
run: |
source ./scripts/common.sh
assertPython
enterVenv
poetryInstall
- name: build docs
run: |
source ./scripts/common.sh
enterVenv
pdoc -o ./html -d google ./pywemo/
- name: upload docs artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
with:
path: ./html/
# This is copied from the official `pdoc` example:
# https://github.com/mitmproxy/pdoc/blob/main/.github/workflows/docs.yml
#
# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
# NOTE: Needed to push to the repository.
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2.0.4