Skip to content

Commit

Permalink
fix: GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
mgogoulos committed Nov 20, 2024
1 parent 1384471 commit 9b3e025
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:

jobs:
build:
name: Build & test via docker-compose
name: Build & test via docker compose
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- 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
run: docker-compose -f docker-compose-dev.yaml up -d
run: docker compose -f docker compose-dev.yaml up -d

- name: List containers
run: docker ps
Expand All @@ -26,10 +26,10 @@ jobs:
shell: bash

- 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: 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
run: docker-compose -f docker-compose-dev.yaml down
run: docker compose -f docker compose-dev.yaml down

0 comments on commit 9b3e025

Please sign in to comment.