Closed bastienboutonnet closed 3 years ago
Sorry if this comes off as condescending but are you sure you have Postgres installed? Not the Python package, the actual database.
@dargueta not condescnding at all it's a fair question. However, I was under the impression that using those fixtures mean I do not have to install postgres nor spring it up in a container or so.
Am I mistaken?
You need Postgres installed but you don't need to set up a database. As long as the Postgres runtime library is available, Python will be able to handle the rest. The system requirements are listed in the documentation here.
Oops sorry I ended up not ever replying to you on this.
In the end my CI setup got a little more complex so I went for a more "manual" docker setup but that does make sense what you say. Feel free to close this issue.
And thanks for your help
@jsnb or @HelenMc do you still have ownership of the repo? I can't close the issue.
@dargueta I can close it if you want since I created the issue.
That works too
I am getting a weird issue when running the tests in a
windows-latest
GitHub action which doesn't ever come up when I test locally (on MacOSX) nor when I run mytox
testing suite locally.When running on a windows container (github actions) I get the following error message
RuntimeError: command not found: initdb
(full traceback below). Not sure if it's a known issue or if I'm doing something wrong.GitHub Action tox/pytest run output
This is how the test is set up:
and this is the SQL it populates the db with (referred to in the previous snippet.
To get all the context and see the code you can check the PR on my repo if you need (it's open): https://github.com/bitpicky/dbt-sugar/pull/17