Merge branch 'main' of https://github.com/pretalx/pretalx #12
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2020-present Tobias Kunze | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Code Style | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'src/pretalx/locale/**' | |
| - 'src/pretalx/static/**' | |
| - 'doc/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'src/pretalx/locale/**' | |
| - 'src/pretalx/static/**' | |
| - 'doc/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| ruff: | |
| name: ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ".github/workflows/python-version.txt" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: extractions/setup-just@v4 | |
| - name: Run isort | |
| run: just fmt-check | |
| html: | |
| name: HTML checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ".github/workflows/python-version.txt" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: extractions/setup-just@v4 | |
| - name: Install Dependencies | |
| run: just install --extra dev | |
| - name: Run djangofmt | |
| run: just djangofmt-check | |
| - name: Check for untrimmed blocktranslate tags | |
| run: just blocktranslate-check | |
| compliance: | |
| name: Licensing and compliance checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: ".github/workflows/python-version.txt" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: extractions/setup-just@v4 | |
| - name: Run REUSE | |
| run: just reuse |