Skip to content

Commit

Permalink
Merge pull request #25 from grezy-software/rework
Browse files Browse the repository at this point in the history
rework name in CI
  • Loading branch information
Xenepix authored Nov 19, 2024
2 parents b0e5247 + 7a24122 commit a62f222
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Coverage value
run: |
cvg_result=$(docker exec nango_dev_django coverage report --skip-covered | head -n -2 | tail -n 1 | awk '{print $NF}' | sed 's/%//')
cvg_result=$(docker exec nango_django coverage report --skip-covered | head -n -2 | tail -n 1 | awk '{print $NF}' | sed 's/%//')
echo "COVERAGE=$cvg_result" >> $GITHUB_ENV
echo $cvg_result
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif
setup: setup-back setup-front

test:
docker exec nango_dev_django coverage run manage.py test -v2 --keepdb
docker exec nango_django coverage run manage.py test -v2 --keepdb

up:
docker compose -f docker/development-postgres.yml up -d --no-color --build --remove-orphans
Expand All @@ -38,29 +38,29 @@ downv:
docker compose -f docker/development-postgres.yml down -v

nango:
docker exec nango_dev_django python manage.py bridge -t
docker exec nango_django python manage.py bridge -t
cp -r ./backend/.nango_front/ts_types ./frontend/src/api/nango_front/
ruff format

route:
docker exec nango_dev_django python manage.py bridge -r
docker exec nango_django python manage.py bridge -r

script:
docker exec nango_dev_django python manage.py runscript $(SCRIPT)
docker exec nango_django python manage.py runscript $(SCRIPT)

django: # Go insine the Django container
docker exec -it nango_dev_django bash
docker exec -it nango_django bash

makemigrations:
docker exec -it nango_dev_django python manage.py makemigrations
docker exec -it nango_django python manage.py makemigrations
ruff format

migrate:
docker exec -it nango_dev_django python manage.py migrate
docker exec -it nango_django python manage.py migrate

coverage: test
docker exec nango_dev_django coverage html
docker exec nango_dev_django coverage report
docker exec nango_django coverage html
docker exec nango_django coverage report

stripe:
# stripe login
Expand Down

0 comments on commit a62f222

Please sign in to comment.