Skip to content

Commit

Permalink
👷 Create backend_CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yjeong-k authored Oct 25, 2023
1 parent 05a1258 commit 649f5ff
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/backend_CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: SpeechBuddy Backend CI

on:
push:
branches: [ "main", "feat/CICD-backend" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
cd backend
python manage.py test --no-input
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
EMAIL_HOST_USER: ${{ secrets.EMAIL_HOST_USER }}
EMAIL_HOST_PASSWORD: ${{ secrets.EMAIL_HOST_PASSWORD }}

0 comments on commit 649f5ff

Please sign in to comment.