chore(deps): bump actions/upload-artifact from 4 to 7 #370
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: CI Workflow | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'quantara/web_app/**' | |
| - 'quantara/frontend/**' | |
| - 'devops/**' | |
| - '.github/workflows/ci.yml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'quantara/web_app/**' | |
| - 'quantara/frontend/**' | |
| - 'devops/**' | |
| - '.github/workflows/ci.yml' | |
| jobs: | |
| test: | |
| name: Test Suite (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| 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 ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| 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 migration round-trip tests | |
| working-directory: ./quantara | |
| run: | | |
| poetry run pytest web_app/tests/test_migrations.py -q | |
| - name: Run migrations | |
| working-directory: ./quantara | |
| run: | | |
| poetry run alembic -c web_app/alembic.ini upgrade head | |
| - name: Run tests | |
| working-directory: ./quantara | |
| run: | | |
| poetry run pytest web_app/tests -v --tb=short --cov-fail-under=80 | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: quantara/coverage.xml | |
| retention-days: 14 |