Skip to content

Update django_CI.yml #4

Update django_CI.yml

Update django_CI.yml #4

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@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install django djangorestframework drf-yasg
- name: Create secrets.json
run: |
echo '{"SECRET_KEY": "${{ secrets.SECRET_KEY }}"}' > aiServer/secrets.json
- name: Run Tests
run: |
python manage.py test
working-directory: aiServer