Skip to content

changed readme

changed readme #46

Workflow file for this run

name: Django CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
- name: Create .env file
run: |
cd backend
echo "ENV=development" > .env
echo "DJANGO_DEBUG=True" >> .env
echo "DJANGO_SECRET_KEY=django-insecure-ci-only" >> .env
echo "DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1" >> .env
- name: Run migrations
run: |
cd backend
python manage.py migrate --noinput
- name: Run tests
run: |
cd backend
python manage.py test