-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tests against multiple PostgreSQL versions #139
Comments
Looks like this might help as a starting point https://justatheory.com/2020/06/test-extensions-with-github-actions/ |
https://www.postgresql.org/download/linux/ubuntu/ has relevant instructions too. The list of currently supported PostgreSQL versions is at https://www.postgresql.org/support/versioning/ - currently that's:
|
The GitHub Actions
|
I tried running this:
And now this works too:
|
|
Since this installs multiple PostgreSQL versions I need to figure out how to tell |
So I need to use the django-sql-dashboard/pytest_use_postgresql.py Lines 6 to 8 in 65e7d51
|
I'm going to test on 10, 11, 12 and 13 - using a matrix. |
If this passes I'll revert the change from #138 on this branch to confirm that it fails, then merge the new tests. |
Error:
|
I think this is the problem: def initialize(self):
self.initdb = self.settings.pop('initdb')
if self.initdb is None:
self.initdb = find_program('initdb', ['bin'])
self.postgres = self.settings.pop('postgres')
if self.postgres is None:
self.postgres = find_program('postgres', ['bin']) So I need to pass in a custom path to |
That passed against all PostgreSQL versions! |
I expect this to break in PostgreSQL 10. |
* Run tests against multiple PostgreSQL versions, closes #139
Wrote this up in a TIL: https://til.simonwillison.net/github-actions/different-postgresql-versions |
Originally posted by @simonw in #138 (comment)
The text was updated successfully, but these errors were encountered: