Skip to main content
Glama
by mckinsey
test-e2e-plot-vizro-ai.yml5.6 kB
name: e2e plot tests for VizroAI defaults: run: working-directory: vizro-ai on: push: branches: [main] pull_request: branches: paths: - "vizro-ai/**" - "!vizro-ai/docs/**" workflow_dispatch: env: PYTHONUNBUFFERED: 1 FORCE_COLOR: 1 jobs: test-e2e-plot-vizro-ai-fork: if: ${{ github.event.pull_request.head.repo.fork }} name: test-e2e-plot-vizro-ai on Py${{ matrix.config.python-version }} ${{ matrix.config.label }} runs-on: ${{ matrix.config.os }} strategy: fail-fast: false matrix: # This is not a nice way to define the matrix, but it's the only way that's possible so that we only run # the job on Windows on merge to main rather than in every PR. See: # https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix # https://github.com/orgs/community/discussions/26253 # https://github.com/actions/runner/issues/1985 config: - python-version: "3.10" hatch-env: all.py3.10 os: ubuntu-latest - python-version: "3.11" hatch-env: all.py3.11 os: ubuntu-latest - python-version: "3.12" hatch-env: all.py3.12 os: ubuntu-latest - python-version: "3.13" hatch-env: all.py3.13 os: ubuntu-latest - python-version: "3.14" hatch-env: all.py3.14 os: ubuntu-latest - python-version: "3.10" hatch-env: lower-bounds os: ubuntu-latest label: lower bounds - python-version: "3.13" hatch-env: all.py3.13 os: windows-latest label: Windows is_non_release_pr: - ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'release')}} exclude: - is_non_release_pr: true config: python-version: "3.13" hatch-env: all.py3.13 os: windows-latest label: Windows steps: - uses: actions/checkout@v5 - name: Passed fork step run: echo "Success!" test-e2e-plot-vizro-ai: if: ${{ ! github.event.pull_request.head.repo.fork }} name: test-e2e-plot-vizro-ai on Py${{ matrix.config.python-version }} ${{ matrix.config.label }} runs-on: ${{ matrix.config.os }} strategy: fail-fast: false matrix: # This is not a nice way to define the matrix, but it's the only way that's possible so that we only run # the job on Windows on merge to main rather than in every PR. See: # https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix # https://github.com/orgs/community/discussions/26253 # https://github.com/actions/runner/issues/1985 config: - python-version: "3.10" hatch-env: all.py3.10 os: ubuntu-latest - python-version: "3.11" hatch-env: all.py3.11 os: ubuntu-latest - python-version: "3.12" hatch-env: all.py3.12 os: ubuntu-latest - python-version: "3.13" hatch-env: all.py3.13 os: ubuntu-latest - python-version: "3.14" hatch-env: all.py3.14 os: ubuntu-latest - python-version: "3.10" hatch-env: lower-bounds os: ubuntu-latest label: lower bounds - python-version: "3.13" hatch-env: all.py3.13 os: windows-latest label: Windows is_non_release_pr: - ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'release')}} exclude: - is_non_release_pr: true config: python-version: "3.13" hatch-env: all.py3.13 os: windows-latest label: Windows steps: - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.config.python-version }} uses: actions/setup-python@v6 with: python-version: ${{ matrix.config.python-version }} - name: Install Hatch run: pip install hatch - name: Show dependency tree run: hatch run ${{ matrix.config.hatch-env }}:pip tree - name: Run vizro-ai e2e plot tests with PyPI vizro run: hatch run ${{ matrix.config.hatch-env }}:test-e2e-plot env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} VIZRO_TYPE: pypi - name: Run vizro-ai e2e plot tests with local vizro run: | hatch run ${{ matrix.config.hatch-env }}:pip install ../vizro-core hatch run ${{ matrix.config.hatch-env }}:test-e2e-plot env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} VIZRO_TYPE: local - name: Send custom JSON data to Slack id: slack # used pinned commit hash for security reasons uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 if: failure() with: payload: | { "text": "Vizro-ai ${{ matrix.config.hatch-env }} e2e plot tests build result: ${{ job.status }}\nBranch: ${{ github.head_ref }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } webhook: ${{ env.SLACK_WEBHOOK_URL }} webhook-type: incoming-webhook

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mckinsey/vizro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server