cicd: run on every pull request, but only deploy on testing #86

Merged
j3d1 merged 1 commit from lagertonne/test-every-time into testing 2024-11-12 18:18:45 +00:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit 63d6b7a5a8 - Show all commits

View file

@ -0,0 +1,20 @@
on:
pull_request:
jobs:
test:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache-dependency-path: '**/requirements.dev.txt'
- name: Install dependencies
working-directory: core
run: pip3 install -r requirements.dev.txt
- name: Run django tests
working-directory: core
run: python3 manage.py test

View file

@ -2,6 +2,7 @@ on:
push:
branches:
- testing
jobs:
test:
runs-on: docker