Skip to content

feat: prepare premium subscriptions and casual hosting for coordinated launch #41

feat: prepare premium subscriptions and casual hosting for coordinated launch

feat: prepare premium subscriptions and casual hosting for coordinated launch #41

Workflow file for this run

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