Skip to content

Commit

Permalink
feat: add Make rule for infra
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Oct 18, 2021
1 parent 2fbcb70 commit 6ac5334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ jobs:
with:
poetry-version: 1.1.2
- name: Build Docker image
run: |
cd infra
docker-compose down
docker-compose up -d
run: make run_infra
- name: Sleep for 5 seconds
uses: jakejarvis/wait-action@master
with:
time: "5s"
uses: sleep 5
- name: Run Tests
run: make tests
- name: Upload coverage
- name: Upload Coverage
uses: codecov/codecov-action@v1
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ install:
tests: install
poetry run pre-commit run --all-files
poetry run pytest --cov=./ --cov-report=xml -sx

run_infra:
cd infra &&\
docker-compose down &&\
docker-compose up -d

0 comments on commit 6ac5334

Please sign in to comment.