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.
Linting and formatting checks fail in GitHub actions, immediately after project creation.
To reproduce:
make compile
git init
git add .
Notice how the checks fail:![image](https://github.com/sixfeetup/scaf/assets/784273/5527c192-f751-4fff-8d54-5e064da03921)
Linting and formatting checks fail with:
Backend tests fail with: