Skip to content
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

enable multi pgstac version testing and handle =<0.8.2 pgstac version #191

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

vincentsarago
Copy link
Member

This PR does:

  • set pytest to run multiple pgstac version (hardcoded).
  • handle old version of pgstac when read-only mode didn't exists

cc @bitner

"SELECT * FROM pgstac.create_collection(%s::jsonb);", (col,)
)
for item in load_json(items):
cur.execute("SELECT * FROM pgstac.create_item(%s::jsonb);", (item,))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can't use pypgstac loader because there is a version check and we can't use pypgstac version 0.9.5 to load on a 0.7.1 pgstac

params=[
"0.7.10",
"0.8.5",
"0.9.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #171

@vincentsarago vincentsarago merged commit 484d066 into main Sep 5, 2024
8 checks passed
@vincentsarago vincentsarago deleted the patch/tests-multi-pgstac-version-and-fix-ro branch September 5, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants