mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-04 06:03:33 +01:00
fix: GH action
This commit is contained in:
parent
9b3e0250d4
commit
9fc7597e73
12
.github/workflows/python.yml
vendored
12
.github/workflows/python.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build & test via docker compose
|
name: Build & test via docker-compose
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -13,10 +13,10 @@ jobs:
|
|||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Build the Stack
|
- name: Build the Stack
|
||||||
run: docker compose -f docker compose-dev.yaml build
|
run: docker compose -f docker-compose-dev.yaml build
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
run: docker compose -f docker compose-dev.yaml up -d
|
run: docker compose -f docker-compose-dev.yaml up -d
|
||||||
|
|
||||||
- name: List containers
|
- name: List containers
|
||||||
run: docker ps
|
run: docker ps
|
||||||
@ -26,10 +26,10 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Run Django Tests
|
- name: Run Django Tests
|
||||||
run: docker compose -f docker compose-dev.yaml exec --env TESTING=True -T web pytest
|
run: docker compose -f docker-compose-dev.yaml exec --env TESTING=True -T web pytest
|
||||||
|
|
||||||
# Run with coverage, saves report on htmlcov dir
|
# Run with coverage, saves report on htmlcov dir
|
||||||
# run: docker compose -f docker compose-dev.yaml exec --env TESTING=True -T web pytest --cov --cov-report=html --cov-config=.coveragerc
|
# run: docker-compose -f docker-compose-dev.yaml exec --env TESTING=True -T web pytest --cov --cov-report=html --cov-config=.coveragerc
|
||||||
|
|
||||||
- name: Tear down the Stack
|
- name: Tear down the Stack
|
||||||
run: docker compose -f docker compose-dev.yaml down
|
run: docker compose -f docker-compose-dev.yaml down
|
||||||
|
Loading…
Reference in New Issue
Block a user