Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project documentation #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/code_coverage.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Code Coverage
name: Continuous Integration

on:
push:
Expand All @@ -11,7 +11,7 @@ on:

jobs:
test:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
name: Code Coverage (Python ${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
Expand Down Expand Up @@ -40,3 +40,27 @@ jobs:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
docs:
name: Generate and Upload Documentation
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checking out code from GitHub
uses: actions/[email protected]
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip pdoc3
pip install -r requirements.txt
pip list
- name: Generate documentation
run: pdoc --html sharkiq
- name: Deploy Documentation
if: github.event_name == 'push'
uses: JamesIves/[email protected]
with:
branch: docs
folder: html/sharkiq
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,7 @@ dmypy.json

# Secrets
secrets.py
driver.py
driver.py

# Documentation
html/
2 changes: 1 addition & 1 deletion sharkiq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Python API for Shark IQ vacuum robots"""
"""Unofficial SDK for Shark IQ robot vacuums, designed primarily to support an integration for Home Assistant."""

from .ayla_api import get_ayla_api, AylaApi
from .exc import (
Expand Down
Loading