From d93b1b83d7dd7bd8f3490af8df778483015a8e3b Mon Sep 17 00:00:00 2001 From: jedi Date: Sat, 9 Nov 2024 05:28:27 +0100 Subject: [PATCH] add test stage in workflow --- .forgejo/workflows/deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 3d3e7d5..62cec78 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,6 +1,16 @@ -on: [push] +on: [ push ] jobs: test: + runs-on: docker + container: + image: docker.io/python:latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: pip install -r core/requirements.dev.txt + - run: python manage.py test + deploy: runs-on: docker container: image: docker.io/serversideup/ansible:latest