mirror of
https://github.com/pretix/pretix.git
synced 2026-01-01 18:32:27 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'src/pretix/locale/**'
|
|
- 'src/pretix/static/**'
|
|
- 'src/tests/**'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'src/pretix/locale/**'
|
|
- 'src/pretix/static/**'
|
|
- 'src/tests/**'
|
|
|
|
jobs:
|
|
spelling:
|
|
name: Spellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install system packages
|
|
run: sudo apt update && sudo apt install enchant hunspell aspell-en
|
|
- name: Install Dependencies
|
|
run: pip3 install -Ur requirements.txt
|
|
working-directory: ./doc
|
|
- name: Spellcheck docs
|
|
run: make spelling
|
|
working-directory: ./doc
|
|
- name:
|
|
run: '[ ! -s _build/spelling/output.txt ]'
|
|
working-directory: ./doc
|