Repository navigation
feat: prepare premium subscriptions and casual hosting for coordinated launch #41
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: Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Check for missing migrations | |
| run: python manage.py makemigrations --check --dry-run | |
| env: | |
| SECRET_KEY: ci-secret-key | |
| API_KEY: ci-api-key | |
| NEW_AES_KEY: 0123456789abcdef | |
| DISCORD_CLIENT_SECRET: ci-discord-secret | |
| - name: Apply migrations on a fresh database | |
| run: python manage.py migrate --noinput | |
| env: | |
| SECRET_KEY: ci-secret-key | |
| API_KEY: ci-api-key | |
| NEW_AES_KEY: 0123456789abcdef | |
| DISCORD_CLIENT_SECRET: ci-discord-secret | |
| - name: Run Django checks | |
| run: python manage.py check | |
| env: | |
| SECRET_KEY: ci-secret-key | |
| API_KEY: ci-api-key | |
| NEW_AES_KEY: 0123456789abcdef | |
| DISCORD_CLIENT_SECRET: ci-discord-secret | |
| - name: Run tests | |
| run: pytest | |
| env: | |
| SECRET_KEY: ci-secret-key | |
| API_KEY: ci-api-key | |
| NEW_AES_KEY: 0123456789abcdef | |
| DISCORD_CLIENT_SECRET: ci-discord-secret |