Skip to content

Added support for autodoc --templatedir option #11

Added support for autodoc --templatedir option

Added support for autodoc --templatedir option #11

Workflow file for this run

---
name: CI
on:
- push
- pull_request
jobs:
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install tox
- name: Run tox
run: tox -e style
test:
name: Run unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout source code
uses: actions/checkout@v3
# We need history to build the package
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: python -m pip install tox
- name: Run unit tests (via tox)
# Run tox using the version of Python in `PATH`
run: tox -e py
release:
name: Upload release artifacts
runs-on: ubuntu-latest
permissions:
id-token: write
needs: test
if: github.event_name == 'push'
steps:
- name: Checkout source code
uses: actions/checkout@v3
# We need history to build the package
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1