Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
yooooonshine committed Aug 27, 2024
2 parents a146d00 + dc8909c commit 540cc13
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/django_CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit 540cc13

Please sign in to comment.