Setup PostgreSQL for Linux, Windows and macOS using GitHub Actions

As of today (Nov 24, 2021), there's only one action on the marketplace to setup a PostgreSQL server for Linux, Windows and macOS runners. If you among those who want to test their software on all major platforms, you have no option but to use ikalnytskyi/action-setup-postgres.

steps:
  - name: Setup PostgreSQL
    uses: ikalnytskyi/action-setup-postgres@v1
    id: postgres

  - name: Run tests
    env:
      CONNECTION_URI: ${{ steps.postgres.outputs.connection-uri }}
    run: pytest -vv tests/

Key features: