From 1212574ead79f70e83c2f8f99a042c7fecf7d8d3 Mon Sep 17 00:00:00 2001 From: Pamella Bezerra Date: Tue, 11 Jun 2024 19:18:41 -0300 Subject: [PATCH] Add Django GA --- .github/workflows/django.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/django.yml diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml new file mode 100644 index 0000000..6703e59 --- /dev/null +++ b/.github/workflows/django.yml @@ -0,0 +1,27 @@ +name: Django CI (django-ai-assistant) + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + + - name: Run tests + run: | + poetry run pytest + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}