From 93e001946e333a12c65d1d2ad6316694f0b44a6f Mon Sep 17 00:00:00 2001 From: Kiarash <95994481+Ghosts6@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:35:16 +0000 Subject: [PATCH] Update django.yml --- .github/workflows/django.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 4ef654b..e55cc27 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -1,4 +1,5 @@ name: Django CI + on: push: branches: [ "main" ] @@ -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: @@ -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