feat(screenshot): add change events for screenshot unit assignment and removal #12267
Workflow file for this run
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
| # Copyright © Michal Čihař <[email protected]> | |
| # | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| name: API | |
| on: | |
| push: | |
| branches-ignore: | |
| - renovate/** | |
| - weblate | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| api-lint: | |
| runs-on: ubuntu-24.04 | |
| name: API Lint | |
| env: | |
| CI_DATABASE: postgresql | |
| CI_REDIS_HOST: 127.0.0.1 | |
| CI_REDIS_PORT: '60001' | |
| CI_DB_PASSWORD: weblate | |
| CI_DB_HOST: 127.0.0.1 | |
| CI_DB_PORT: '60000' | |
| CI_SELENIUM: '1' | |
| DJANGO_SETTINGS_MODULE: weblate.settings_test | |
| PYTHONWARNINGS: default,ignore:unclosed:ResourceWarning | |
| PYTHONUNBUFFERED: 1 | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| id: setup_python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 | |
| with: | |
| python-version: '3.14' | |
| - uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4 | |
| with: | |
| save-cache: ${{ github.ref == 'refs/heads/main' }} | |
| cache-suffix: ${{ steps.setup_python.outputs.python-version }} | |
| version: 0.9.11 | |
| - name: Start services | |
| run: ./ci/services-up "$CI_DATABASE" | |
| - name: Install apt dependencies | |
| run: sudo ./ci/apt-install "$CI_DATABASE" | |
| - name: Used versions | |
| run: ./ci/print-versions | |
| - name: Install Python dependencies | |
| run: ./ci/pip-install latest | |
| - name: Prepare database | |
| run: ./ci/prepare-database | |
| - name: Migrate database | |
| run: uv run ./manage.py migrate --noinput --traceback | |
| - name: Generate OpenAPI | |
| run: | | |
| echo "::add-matcher::.github/matchers/spectacular.json" | |
| make -C docs update-openapi | |
| echo "::remove-matcher owner=spectacular::" | |
| - name: openapi-lint | |
| run: npx @redocly/cli lint --format github-actions docs/specs/openapi.yaml | |
| - name: Verify OpenAPI spec is up to date | |
| run: git diff --exit-code | |
| - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0 | |
| if: always() | |
| with: | |
| msg: 'chore(docs): update OpenAPI schema' |