Skip to content

Commit

Permalink
fix: fix ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-rdo committed Sep 1, 2024
1 parent df41cd4 commit 602427a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
name: CI/CD Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Django environment
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python manage.py migrate
python manage.py collectstatic --noinput
- name: Run tests
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python manage.py test
deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 602427a

Please sign in to comment.