Files
2026-07-13 13:22:34 +08:00

66 lines
1.7 KiB
YAML

name: xtest-viz
on:
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- .github/workflows/xtest-viz.yml
- dev/xtest_viz.py
schedule:
# Run daily at 16:00 UTC (3 hours after cross-version-tests.yml at 13:00)
- cron: "0 16 * * *"
defaults:
run:
shell: bash
permissions: {}
jobs:
xtest-viz:
runs-on: ubuntu-slim
timeout-minutes: 10
permissions:
contents: read
actions: read
if: >
(
github.event_name == 'schedule' &&
github.repository == 'mlflow/dev'
) || (
github.event_name == 'pull_request' &&
(github.event.pull_request.draft == false || github.event.pull_request.user.login == 'Copilot' && github.event.pull_request.user.type == 'Bot')
)
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Generate cross-version test visualization
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
{
echo "## Cross-Version Test Results"
echo ""
echo "**Generated:** $(date -u '+%Y-%m-%d %H:%M:%S UTC')"
echo ""
uv run dev/xtest_viz.py --days 14 --repo mlflow/dev --json-output results.json
} >> $GITHUB_STEP_SUMMARY
- name: Upload JSON results
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: xtest-viz
path: results.json
retention-days: 3
if-no-files-found: error