Skip to content

Commit

Permalink
Build: Update GitHub Actions workflow to use Docker for building and …
Browse files Browse the repository at this point in the history
…running the Django application
  • Loading branch information
SverreNystad committed Jan 5, 2024
1 parent 6657846 commit 5ac0742
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install setuptools
run: |
python -m pip install --upgrade pip setuptools
- name: Install Dependencies

- name: Build docker image
run: |
cd backend
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
docker compose build
docker compose up
- name: Run Tests
run: |
cd backend
python manage.py test
docker-compose run tutorai python manage.py test

0 comments on commit 5ac0742

Please sign in to comment.