Use mainnet dai price for xdai (#457) #1879
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |