When you are trying github actions with your django project, and your database is for example, PostgreSQL, could be a problem running tests in the workflow (personal experience 😋).
The problem is, you don't have an environment or DB engine running inside github actions platform, neither a server where github actions could run tests, then, when is turn of "run tests" step, you'll have this error.
So, ¿what do we do?.
Well, an easy way to fix this problem is check if your project is running in test mode to change your DB engine to SQLite inside settings.py, in this way, github actions could run all tests.
This is my first post in dev.to, I hope could help somebody with the same problem I had.