From 50bc572ec63d96d0df7abe6fda3680de8bd91c30 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 3d3e7d5..5acdbca 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,6 +1,20 @@ -on: [push] +on: + push: + branches: + - live + - testing 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