Update docs configuration & run docs build in CI #24
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
# manually triggered | |
schedule: | |
- cron: "0 12 * * 5" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Tests | |
run: | | |
python -m venv .env | |
.env/bin/pip install -U setuptools pip | |
.env/bin/pip install '.[doc,testing]' | |
.env/bin/pytest tests | |
.env/bin/pylint --rcfile=.pylintrc gossip tests | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Building docs | |
run: | | |
python -m venv .env | |
.env/bin/pip install -U setuptools pip | |
.env/bin/pip install '.[doc]' | |
.env/bin/sphinx-build -a -W -E doc build/sphinx/html |