diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-02-25 12:35:46 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-02-26 22:12:25 +0100 |
commit | 9f125fce7971714333d23c7f554411342466721c (patch) | |
tree | b4a2828e67cd960ebb8503157a32745c9894115e /.github | |
parent | acddbc57d9072d78a3e3ae56c6c9d28c7daab2d5 (diff) | |
download | django-9f125fce7971714333d23c7f554411342466721c.tar.gz |
Used GitHub actions for docs tests.
Co-Authored-By: Tom Forbes <tom@tomforb.es>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/docs.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000000..405b8c8686 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,35 @@ +name: Docs + +on: + pull_request: + paths: + - 'docs/**' + push: + branches: + - master + paths: + - 'docs/**' + +jobs: + docs: + runs-on: ubuntu-latest + name: docs + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - run: python -m pip install -r docs/requirements.txt + - name: Build docs + run: | + cd docs + sphinx-build -b spelling -n -q -W --keep-going -d _build/doctrees -D language=en_US -j auto . _build/spelling |