Compare commits

..

1 commit

Author SHA1 Message Date
e34fb979ef cicd: run on every pull request, but only deploy on testing
All checks were successful
/ test (pull_request) Successful in 52s
/ deploy (pull_request) Has been skipped
2024-11-12 16:51:29 +01:00
2 changed files with 2 additions and 20 deletions

View file

@ -1,20 +0,0 @@
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
pull_request:
jobs:
test:
@ -24,6 +25,7 @@ jobs:
deploy:
needs: [test]
runs-on: docker
if: github.ref == 'refs/heads/testing'
steps:
- uses: actions/checkout@v4
- name: Install ansible