Skip to content

Upgrade dandischema to 0.10.4, Update UI references to dandi CLI instead of lincbrain CLI #638

Upgrade dandischema to 0.10.4, Update UI references to dandi CLI instead of lincbrain CLI

Upgrade dandischema to 0.10.4, Update UI references to dandi CLI instead of lincbrain CLI #638

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-latest
strategy:
fail-fast: false
matrix:
tox-env: [test, check-migrations] # [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: test@example.com
DANDI_ALLOW_LOCALHOST_URLS: 1