From eaeb09598e178613727214b95b64be106c89178a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 18 Nov 2023 09:41:03 +0000 Subject: [PATCH] Improve CI (#68) Reviewed-on: https://git.kucharczyk.xyz/lukas/timetracker/pulls/68 --- .gitea/workflows/build-docker.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-docker.yml b/.gitea/workflows/build-docker.yml index 443ff9f..7b7235d 100644 --- a/.gitea/workflows/build-docker.yml +++ b/.gitea/workflows/build-docker.yml @@ -2,12 +2,20 @@ 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' steps: - name: Checkout uses: actions/checkout@v4