Skip to content

Merge pull request #2118 from yarikoptic/enh-no-dockerlogin #3510

Merge pull request #2118 from yarikoptic/enh-no-dockerlogin

Merge pull request #2118 from yarikoptic/enh-no-dockerlogin #3510

Workflow file for this run

name: CI for backend
on:
pull_request:
paths-ignore:
- "web/**"
push:
branches:
- master
paths-ignore:
- "web/**"
schedule:
- cron: "0 0 * * *"
jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
tox-env: [lint, type, test, check-migrations]
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: django
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:management
ports:
- 5672:5672
minio:
# This image does not require any command arguments (which GitHub Actions don't support)
image: bitnami/minio:latest
env:
MINIO_ROOT_USER: minioAccessKey
MINIO_ROOT_PASSWORD: minioSecretKey
ports:
- 9000:9000
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install tox
run: |
pip install --upgrade pip
pip install tox
- name: Run tests
run: |
tox -e ${{ matrix.tox-env }}
env:
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
DJANGO_MINIO_STORAGE_ENDPOINT: localhost:9000
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
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_DEV_EMAIL: [email protected]
DANDI_ALLOW_LOCALHOST_URLS: 1