From 9f7ca5c236a55f1d48508cd73385376fe51ae57c 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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 3d3e7d5..ef68ac3 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,6 +1,18 @@ -on: [push] +on: + push: + branches: + - live + - testing jobs: test: + runs-on: docker + container: + image: docker.io/python:latest + steps: + - run: pip install -r core/requirements.dev.txt + - run: python manage.py test + + deploy: runs-on: docker container: image: docker.io/serversideup/ansible:latest