Centralize Stellar amount unit conversions #347
Workflow file for this run
This file contains hidden or 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: 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@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| 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 |