Update django.yml

This commit is contained in:
sosokker 2023-11-22 23:06:17 +07:00
parent d98c77acc6
commit d013b734eb

View File

@ -2,13 +2,12 @@ name: Django CI
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
@ -31,6 +30,7 @@ jobs:
python-version: 3.11 python-version: 3.11
- name: Install dependencies - name: Install dependencies
run: | run: |
cd backend
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: Run migrations - name: Run migrations