This action sets up a PostgreSQL server for the rest of the job. Here are some key features:
- Runs on Linux, macOS and Windows runners.
- Adds PostgreSQL binaries (e.g.
psql
) toPATH
. - Uses PostgreSQL installed in GitHub Actions Virtual Environments.
- Easy to check that IT DOES NOT contain malicious code.
Key | Value |
---|---|
URI | postgresql://postgres:postgres@localhost/postgres |
Host | localhost |
Port | 5432 |
Username | postgres |
Password | postgres |
Database | postgres |
steps:
- uses: ikalnytskyi/action-setup-postgres@v1
steps:
- uses: ikalnytskyi/action-setup-postgres@v1
with:
username: ci
password: sw0rdfish
database: test
id: postgres
- run: pytest -vv tests/
env:
DATABASE_URI: ${{ steps.postgres.outputs.connection-uri }}
The scripts and documentation in this project are released under the MIT License.