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
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.8"
|
|
|
|
- name: Cache pip
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
# This path is specific to Ubuntu
|
|
|
|
path: ~/.cache/pip
|
|
|
|
# Look to see if there is a cache hit for the corresponding requirements file
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|
${{ runner.os }}-
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
- name: Test with tox
|
|
|
|
env:
|
|
|
|
TOX_ENV: docs
|
|
|
|
run: |
|
|
|
|
tox -e $TOX_ENV
|