From d79f387de709d0828aaf9752ab5d1b92e0788a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 18 Nov 2023 10:39:29 +0100 Subject: [PATCH] Revert "Move the test workflow out" This reverts commit 32c632f7a6cd91676ebdb6e7790a659f969847e5. --- .gitea/workflows/build-docker.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-docker.yml b/.gitea/workflows/build-docker.yml index 8c2bff6..7b7235d 100644 --- a/.gitea/workflows/build-docker.yml +++ b/.gitea/workflows/build-docker.yml @@ -1,11 +1,18 @@ -name: Build and upload container +name: Django CI/CD on: push: - branches: [ main ] paths-ignore: [ 'README.md' ] jobs: + test: + runs-on: python:3.12 + steps: + - python -m pip install poetry + - poetry install + - poetry env info + - poetry run python manage.py migrate + - poetry run pytest build-and-push: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main'