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

Run multiple versions of PostgreSQL in CI build matrix #6

Merged
merged 7 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ jobs:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
postgres-image:
- "postgres:12"
- "postgres:13"
- "postgres:14"
- "postgres:15"
- "postgres:16"
Comment on lines +16 to +21
Copy link
Contributor

Choose a reason for hiding this comment

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

(nitpick) why two different syntaxes for arrays?

Copy link
Contributor Author

@meshy meshy Feb 13, 2024

Choose a reason for hiding this comment

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

I've removed the other array syntax (assuming you're asking about the old one-line python-version). I prefer this one because diffs will be clearer when we change the supported versions.

If you're referring to the new multi-line definition for the python-version, that's a different data structure. I'm not sure which, tbh. I copied it from the docs.

Ref: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#specifying-multiple-pythonpypy-versions


services:
postgres:
image: postgres
image: ${{ matrix.postgres-image }}
env:
POSTGRES_PASSWORD: postgres
options: >-
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This package is tested against:

- Python 3.10, 3.11, or 3.12.
- Django 4.1, 4.2, or 5.0.
Copy link
Contributor

Choose a reason for hiding this comment

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

(out of scope) should we add Django to the matrix, too?

Copy link
Contributor Author

@meshy meshy Feb 13, 2024

Choose a reason for hiding this comment

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

Django is in the tox matrix already.

- PostgreSQL 12 to 16

## Local development

Expand Down