From a0d4a8e86a50890caca5279608771a00404fe688 Mon Sep 17 00:00:00 2001 From: Lee Hyemin <114126424+2ming00@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:18:36 +0900 Subject: [PATCH] Create django_CI.yml create Django ci test --- .github/workflows/django_CI.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/django_CI.yml diff --git a/.github/workflows/django_CI.yml b/.github/workflows/django_CI.yml new file mode 100644 index 0000000..ba85915 --- /dev/null +++ b/.github/workflows/django_CI.yml @@ -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