Skip to content

chore: remove unused import json from blockchain_call.py #27

chore: remove unused import json from blockchain_call.py

chore: remove unused import json from blockchain_call.py #27

name: Integration Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- 'quantara/web_app/**'
- 'quantara/frontend/**'
- 'devops/**'
- '.github/workflows/integration-tests.yml'
pull_request:
branches:
- main
paths:
- 'quantara/web_app/**'
- 'quantara/frontend/**'
- 'devops/**'
- '.github/workflows/integration-tests.yml'
jobs:
integration-tests:
runs-on: ubuntu-latest
permissions:
contents: read
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: quantara
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: quantara
DB_USER: postgres
DB_PASSWORD: password
STELLAR_HORIZON_URL: https://horizon-testnet.stellar.org
STELLAR_SOROBAN_RPC_URL: https://soroban-testnet.stellar.org
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
working-directory: ./quantara
run: |
poetry config virtualenvs.create false
poetry install --no-interaction --no-root
- name: Run migrations
working-directory: ./quantara
run: |
poetry run alembic -c web_app/alembic.ini upgrade head
- name: Run Integration Tests
working-directory: ./quantara
run: |
poetry run pytest web_app/test_integration/ -v --tb=short