Skip to content

Commit

Permalink
fix(makefile): test backend command
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamad-liyaghi committed Jul 26, 2024
1 parent 799c9f2 commit f1ea232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/test-kubernetes/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ runs:
shell: bash

- name: Run Backend Tests
run: make test_k8s
run: kubectl exec -it $(kubectl get pods | grep backend | awk '{print $1}') -- pytest
shell: bash
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help build run stop test test_k8s admin local_confmap prod_confmap
.PHONY: help build run stop test admin local_confmap prod_confmap

help:
@echo "Available targets:"
Expand All @@ -8,7 +8,6 @@ help:
@echo " deploy - Deploy the docker container."
@echo " stop - Stop the docker container."
@echo " test - Run the tests."
@echo " test_k8s - Run the tests in Kubernetes."
@echo " migrations - Create migrations."
@echo " migrate - Migrate"
@echo " local_confmap - Make Kubernetes config maps for local stage"
Expand All @@ -33,9 +32,6 @@ stop:
test:
docker exec academy-master-backend pytest

test_k8s:
kubectl exec -it $(kubectl get pods | grep backend | awk '{print $1}') -- pytest

migrations:
docker exec academy-master-backend python manage.py makemigrations

Expand Down

0 comments on commit f1ea232

Please sign in to comment.