Skip to content

[CI] Add VizroAI charts UI #119

[CI] Add VizroAI charts UI

[CI] Add VizroAI charts UI #119

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches:
- main
paths:
- "vizro-core/**"
defaults:
run:
working-directory: vizro-core
env:
PYTHON_VERSION: "3.12"
jobs:
build-whl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Hatch
run: pip install hatch
- name: Build vizro-core package
run: |
hatch build -t wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pip
path: vizro-core/dist/*.whl
retention-days: 14
- name: Print PR Number
run: |
echo "Pull Request Number: ${{ github.event.workflow_run.pull_requests[0].number }}"
- name: Create PyCafe links
run: |
PR_NUMBER=${{ github.event.workflow_run.pull_requests[0].number || '' }}
if [ -n "$PR_NUMBER" ]; then
hatch run python ../tools/pycafe/create_pycafe_links.py --github-token ${{ github.token }} --repo-name ${{ github.repository }} --pr-number $PR_NUMBER --run-id ${{ github.run_id }} --commit-sha ${{ github.sha }}
else
hatch run python ../tools/pycafe/create_pycafe_links.py --github-token ${{ github.token }} --repo-name ${{ github.repository }} --run-id ${{ github.run_id }} --commit-sha ${{ github.sha }}
fi