Add validation for Mastodon handles to prevent invalid URLs #2553
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
| name: Backend checks | |
| on: | |
| pull_request: | |
| paths: | |
| - "backend/**/*" | |
| - "backend/*" | |
| - ".github/workflows/backend-checks.yml" | |
| jobs: | |
| check-migrations: | |
| runs-on: ubuntu-24.04 | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13.5" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| id: setup-uv | |
| with: | |
| version: "0.5.5" | |
| enable-cache: true | |
| - name: Install python dependencies | |
| if: steps.setup-uv.outputs.cache-hit != 'true' | |
| run: uv sync | |
| - name: Check missing not pushed migrations | |
| run: uv run python manage.py makemigrations --check | |
| env: | |
| DJANGO_SETTINGS_MODULE: pycon.settings.test | |
| STRIPE_SECRET_API_KEY: "" | |
| STRIPE_SUBSCRIPTION_PRICE_ID: "" | |
| STRIPE_WEBHOOK_SIGNATURE_SECRET: "" | |
| CELERY_BROKER_URL: "" | |
| CELERY_RESULT_BACKEND: "" |