From 99d9c65e71b3a656e47914b765dfdf88928b13e3 Mon Sep 17 00:00:00 2001 From: Soroush Sherafat <71870584+sorousherafat@users.noreply.github.com> Date: Thu, 15 Feb 2024 13:55:07 +0330 Subject: [PATCH] added staging deployment to test workflow --- .github/workflows/python-app.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 86d0a88..d63f8c0 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python application +name: Run tests on: workflow_dispatch: @@ -36,6 +36,12 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Deploy staging + run: | + cd broker + docker build -t minikafka:broker . + cd ../ + docker compose up --build -d - name: Test with pytest run: | set GATEWAY_HOST=localhost