2019-06-21 09:56:10 +00:00
|
|
|
name: Docs
|
2021-07-24 16:30:45 +00:00
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the main branch
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
2024-06-23 01:36:06 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-07-24 16:30:45 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-05-30 16:12:35 +00:00
|
|
|
|
2024-06-23 01:36:06 +00:00
|
|
|
- uses: actions/setup-python@v5
|
2021-07-24 16:30:45 +00:00
|
|
|
with:
|
2023-05-30 16:12:35 +00:00
|
|
|
python-version: "3.10"
|
|
|
|
cache: "pip"
|
|
|
|
cache-dependency-path: "requirements*.txt"
|
2021-07-24 16:30:45 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install --upgrade pip wheel
|
|
|
|
pip install tox
|
2022-12-01 13:11:44 +00:00
|
|
|
sudo apt-get install enchant-2
|
2021-07-24 16:30:45 +00:00
|
|
|
|
2023-05-30 16:12:35 +00:00
|
|
|
- name: Build docs with tox
|
2021-07-24 16:30:45 +00:00
|
|
|
env:
|
|
|
|
TOX_ENV: docs
|
|
|
|
run: |
|
|
|
|
tox -e $TOX_ENV
|