Skip to content

[FEAT] - Raise error when payload is too large and suggest number of partitions #726

[FEAT] - Raise error when payload is too large and suggest number of partitions

[FEAT] - Raise error when payload is too large and suggest number of partitions #726

name: Models Performance
permissions: write-all
on:
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-models-performance:
runs-on: ubuntu-latest
env:
NIXTLA_API_KEY: ${{ secrets.NIXTLA_API_KEY }}
PLOTS_REPO_URL: https://github.com/Nixtla/nixtla/blob/docs-figs-model-performance
steps:
- name: Clone repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1
with:
python-version: "3.10"
- name: Install pip requirements
run: pip install uv && uv pip install --system '.[dev]'
- name: Run evaluation
run: python -m action_files.models_performance.main
- name: Upload images to new branch main
run: |
git config --global user.email [email protected]
git config --global user.name AzulGarza
git push https://[email protected]/nixtla/nixtla.git --delete docs-figs-model-performance || true
git checkout -b docs-figs-model-performance
git add -f "*.png"
git commit -m "[cd] update png images" || echo "No changes to commit"
git push https://[email protected]/nixtla/nixtla.git HEAD:docs-figs-model-performance
- name: Upload results to the PR
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const fs = require('fs');
const markdown = fs.readFileSync('./action_files/models_performance/summary.md', 'utf8');
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: markdown
});
github-token: ${{ secrets.GITHUB_TOKEN }}