Skip to content

Merge pull request #1208 from betagouv/HeleneDubourdieu-patch-1 #2749

Merge pull request #1208 from betagouv/HeleneDubourdieu-patch-1

Merge pull request #1208 from betagouv/HeleneDubourdieu-patch-1 #2749

Workflow file for this run

name: Compléments Alimentaires CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Setup PostgreSQL
uses: Harmon758/postgresql-action@v1.0.0
with:
postgresql db: postgres
postgresql user: postgres
postgresql password: postgres
- name: Setup Redis
uses: zhulik/redis-action@1.1.0
with:
redis version: "5"
number of databases: 1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test Django
env:
DEBUG: True
SECRET: test
FORCE_HTTPS: False
SECURE: False
ALLOWED_HOSTS: localhost
ENVIRONMENT: ci
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: postgres
HOSTNAME: localhost
STATICFILES_STORAGE: django.contrib.staticfiles.storage.StaticFilesStorage
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage
DEFAULT_FROM_EMAIL: test@example.com
CONTACT_EMAIL: test@example.com
EMAIL_BACKEND: django.core.mail.backends.dummy.EmailBackend
REDIS_URL: redis://localhost:6379/0
run: |
python3 manage.py test