Linting and formatting checks and backend tests fail in GitHub actions after project creation
rochecompaan opened this issue · 1 comments
rochecompaan commented
Linting and formatting checks fail in GitHub actions, immediately after project creation.
To reproduce:
- Create a new project with Scaf
- Run
make compile
git init
git add .
- `git commit -m "Initial commit"
- Add git remote and push
Linting and formatting checks fail with:
reformatted backend/myproject/contrib/sites/migrations/0002_alter_domain_unique.py
reformatted backend/myproject/contrib/sites/migrations/0001_initial.py
reformatted backend/myproject/contrib/sites/migrations/0003_set_site_domain_and_name.py
reformatted backend/myproject/users/admin.py
reformatted backend/myproject/users/forms.py
reformatted backend/myproject/users/models.py
reformatted backend/myproject/users/tests/factories.py
reformatted backend/myproject/users/migrations/0001_initial.py
reformatted backend/myproject/users/views.py
All done! ✨ 🍰 ✨
9 files reformatted, 32 files left unchanged.
isort....................................................................Passed
ruff.....................................................................Passed
bandit...................................................................Passed
make: *** [Makefile:10: check-lint-and-formatting] Error 1
Error: Process completed with exit code 2.
Backend tests fail with:
kubectl exec -it $(kubectl get pods -l app=backend -o jsonpath="{.items[0].metadata.name}") -- bash -c "cd myproject && pytest --cov=./ --cov-report html --ds=config.settings.test"
E0413 14:15:35.839558 2282 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0413 14:15:35.840075 2282 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0413 14:15:35.841567 2282 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0413 14:15:35.842011 2282 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
E0413 14:15:35.843434 2282 memcache.go:265] couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused
The connection to the server localhost:8080 was refused - did you specify the right host or port?
error: pod, type/name or --filename must be specified
make: *** [Makefile:25: backend-test] Error 1
Error: Process completed with exit code 2.
rochecompaan commented
🎉 This issue has been resolved in version 1.0.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀