mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 08:13:33 +01:00
c28a39fa47
Segregation of Dev and Prod envs, addition of tests Co-authored-by: Markos Gogoulos <mgogoulos@gmail.com> Co-authored-by: Ubuntu <shubhank@my-hostings.nxfutj5b2tlubjykddwgszqteb.bx.internal.cloudapp.net>
35 lines
679 B
YAML
35 lines
679 B
YAML
name: Python Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Build the Stack
|
|
run: docker-compose -f docker-compose-dev.yaml build
|
|
|
|
- name: Start containers
|
|
run: docker-compose -f docker-compose-dev.yaml up -d
|
|
|
|
- name: List containers
|
|
run: docker ps
|
|
|
|
- name: Sleep for 60 seconds
|
|
run: sleep 60s
|
|
shell: bash
|
|
|
|
- name: Run Django Tests
|
|
run: docker-compose -f docker-compose-dev.yaml exec -T web pytest
|
|
|
|
- name: Tear down the Stack
|
|
run: docker-compose -f docker-compose-dev.yaml down |