WIP: Use Uv for managing packages and Ruff for code formatter. #207
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Strings | |
on: | |
push: | |
branches: [ development, master ] | |
paths: | |
- 'doc/**' | |
- 'src/pretix/locale/**' | |
pull_request: | |
branches: [ development, master ] | |
paths: | |
- 'doc/**' | |
- 'src/pretix/locale/**' | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
name: Check gettext syntax | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install system packages | |
run: sudo apt update && sudo apt install gettext | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Install Python dependencies | |
run: uv sync --all-extras | |
- name: Compile messages | |
run: uv run python manage.py compilemessages | |
working-directory: ./src | |
- name: Compile jsi18n | |
run: uv run python manage.py compilejsi18n | |
working-directory: ./src | |
spelling: | |
runs-on: ubuntu-latest | |
name: Spellcheck | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install system packages | |
run: sudo apt-get update && sudo apt-get install enchant-2 hunspell hunspell-de-de aspell-en aspell-de | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Install Python dependencies | |
run: uv sync --all-extras --group test | |
- name: Spellcheck translations | |
run: uv run potypo | |
working-directory: ./src |