Skip to content

Update MySQL database name in workflow #15

Update MySQL database name in workflow

Update MySQL database name in workflow #15

Workflow file for this run

name: Django CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0.31
env:
MYSQL_ROOT_PASSWORD: root # Remplacez ceci par votre mot de passe root MySQL
MYSQL_DATABASE: activmind # Remplacez ceci par le nom de votre base de données
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
working-directory: ./activmindback
run:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
working-directory: ./activmindback
run: python manage.py test