Skip to content

Commit

Permalink
added staging deployment to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sorousherafat authored Feb 15, 2024
1 parent f03dcea commit 99d9c65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 99d9c65

Please sign in to comment.