Add institutional email verification feature #5162
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: CI for backend | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "web/**" | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - "web/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| services: | |
| postgres: | |
| image: postgres:latest | |
| env: | |
| POSTGRES_DB: django | |
| POSTGRES_PASSWORD: postgres | |
| options: >- | |
| --health-cmd "pg_isready --username postgres" | |
| --health-start-period 30s | |
| --health-start-interval 2s | |
| ports: | |
| - 5432:5432 | |
| rabbitmq: | |
| image: rabbitmq:management-alpine | |
| options: >- | |
| --health-cmd "rabbitmq-diagnostics ping" | |
| --health-start-period 30s | |
| --health-start-interval 2s | |
| ports: | |
| - 5672:5672 | |
| minio: | |
| # This image does not require any command arguments (which GitHub Actions don't support) | |
| image: bitnamilegacy/minio:latest | |
| env: | |
| MINIO_ROOT_USER: minioAccessKey | |
| MINIO_ROOT_PASSWORD: minioSecretKey | |
| options: >- | |
| --health-cmd "mc ready local" | |
| --health-timeout 1s | |
| --health-start-period 30s | |
| --health-start-interval 2s | |
| ports: | |
| - 9000:9000 | |
| env: | |
| DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django | |
| DJANGO_CELERY_BROKER_URL: amqp://localhost:5672/ | |
| DJANGO_MINIO_STORAGE_URL: http://minioAccessKey:minioSecretKey@localhost:9000/django-storage-testing | |
| DJANGO_DANDI_WEB_APP_URL: http://localhost:8085 | |
| DJANGO_DANDI_API_URL: http://localhost:8000 | |
| DJANGO_DANDI_JUPYTERHUB_URL: https://hub.dandiarchive.org/ | |
| DJANGO_DANDI_INSTANCE_NAME: DEV-DANDI | |
| DJANGO_DANDI_INSTANCE_IDENTIFIER: "RRID:ABC_123456" | |
| DJANGO_DANDI_DOI_API_PREFIX: "10.80507" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # fetch history for all branches and tags | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Run pre-commit | |
| run: | | |
| uv run pre-commit run --all-files | |
| - name: Run Python tests | |
| run: | | |
| uv run tox | |
| - name: Verify gunicorn config | |
| run: | | |
| uv run gunicorn --config gunicorn.conf.py --check-config dandiapi.wsgi | |
| env: | |
| DJANGO_SETTINGS_MODULE: dandiapi.settings.development |