Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghosts6 authored Nov 20, 2024
1 parent 130b2b8 commit 93e0019
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Django CI

on:
push:
branches: [ "main" ]
Expand All @@ -7,8 +8,12 @@ on:

jobs:
build:

runs-on: ubuntu-latest

env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
API_KEY: ${{ secrets.API_KEY }}

strategy:
max-parallel: 4
matrix:
Expand All @@ -20,11 +25,14 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libldap2-dev libsasl2-dev
- name: Install Dependencies
run: |
sudo apt-get install -y libldap2-dev libsasl2-dev
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
- name: Run Tests
run: |
python manage.py test

0 comments on commit 93e0019

Please sign in to comment.