diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index db52c02..cc78afa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,12 +10,11 @@ jobs: python_version: [ '3.10', '3.11', '3.12' ] django_version: [ '3.2.12', '4.2', '5.0.3' ] steps: - - uses: huaxk/postgis-action@v1 + - uses: nyurik/action-setup-postgis@v1 with: - postgresql version: '12' # See https://https://hub.docker.com/r/mdillon/postgis for available versions, if it is not specified, use the default value 'latest' - postgresql password: 'password' # This environment variable sets the superuser password for PostgreSQL, maybe string or secrets, the default superuser is defined by the input environment variable: postgresql user. - postgresql user: 'test' # This optional environment variable is used in conjunction with postgresql password to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of 'postgres' will be used. - postgresql db: 'test' # This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of postgresql user will be used. + username: test + database: test + password: password - uses: actions/checkout@v2 - name: Set up Python version uses: actions/setup-python@v2