Skip to content

Commit

Permalink
Create django_CI.yml
Browse files Browse the repository at this point in the history
create Django ci test
  • Loading branch information
2ming00 authored Aug 7, 2024
1 parent 8726a13 commit a0d4a8e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/django_CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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 django djangorestframework drf-yasg
- name: Create secrets.json
run: |
echo '{"SECRET_KEY": "${{ secrets.SECRET_KEY }}"}' > ./secrets.json
- name: Run Tests
run: |
python manage.py test
working-directory: aiServer

0 comments on commit a0d4a8e

Please sign in to comment.