Skip to content

Remove connect args #1866

Remove connect args

Remove connect args #1866

Workflow file for this run

name: Local Postgres
on: push
jobs:
db-job:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
# Copy repo contents into container (needed to populate DB)
volumes:
- ${{ github.workspace }}:/repo
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install Requirements
run: pip install -r requirements.txt
- name: Tests
run: python -m pytest tests/queries
# Environment variables used by the `pg_client.py`
env:
NETWORK: 'mainnet'
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY }}