[FIX] Update contributing guide docs #895
Workflow file for this run
This file contains 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: 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_DEV_API_KEY }} | |
NIXTLA_BASE_URL: ${{ secrets.NIXTLA_DEV_BASE_URL }} | |
PLOTS_REPO_URL: https://github.com/Nixtla/nixtla/blob/docs-figs-model-performance | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Set up python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0 | |
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 results to the PR | |
if: github.event_name == 'pull_request' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
run: > | |
python action_files/comment_file.py | |
--search_term "Experiment Results" | |
--file "action_files/models_performance/summary.md" | |
- 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 |