name: Strings on: push: branches: [ master ] paths: - 'doc/**' - 'src/pretix/locale/**' pull_request: branches: [ master ] paths: - 'doc/**' - 'src/pretix/locale/**' jobs: compile: runs-on: ubuntu-latest name: Check gettext syntax 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 gettext - name: Install Dependencies run: pip3 install -e ".[dev]" working-directory: ./src - name: Compile messages run: python manage.py compilemessages working-directory: ./src - name: Compile jsi18n run: python manage.py compilejsi18n working-directory: ./src spelling: runs-on: ubuntu-latest name: Spellcheck 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 hunspell-de-de aspell-en aspell-de - name: Install Dependencies run: pip3 install -e ".[dev]" working-directory: ./src - name: Spellcheck translations run: potypo working-directory: ./src