Implement DEBUG_EMAIL_STARTSWITH and DEBUG_EMAIL_TO #140
This file contains 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: Test | |
on: [push, pull_request, workflow_dispatch] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: pip | |
cache-dependency-path: pyproject.toml | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Check formatting | |
run: ruff format --check server | |
- name: Lint | |
run: ruff check server | |
- name: Check types | |
run: mypy server | |
env: | |
SECRET_KEY: "test" | |
BASE_URL: "https://example.com" | |
- name: Run tests | |
run: python manage.py test | |
env: | |
CELERY_ALWAYS_EAGER: "true" | |
SECRET_KEY: "test" | |
BASE_URL: "https://example.com" |