Skip to content

Merge branch 'main' into remove_dune_queries_reference_code #1615

Merge branch 'main' into remove_dune_queries_reference_code

Merge branch 'main' into remove_dune_queries_reference_code #1615

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:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY }}