Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Fatir Ansari committed Dec 1, 2024
1 parent 4d1759e commit 5959808
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 35 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/eval-model.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Evaluates Chronos-Bolt (Tiny) Model on Some Datasets
# Evaluates Chronos-Bolt (Small) model on selected datasets
name: Evaluate

on:
# Runs only with read privilages for the GITHUB_TOKEN
pull_request:
branches: ["main"] # Run on PRs to main branch

Expand Down Expand Up @@ -32,35 +33,3 @@ jobs:
path: eval-ci-metrics.csv
retention-days: 1
overwrite: true

- name: Download Eval Metrics
uses: actions/download-artifact@v4
with:
name: eval-metrics
path: eval-metrics-artifact/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.run_id }}
- name: Display structure of downloaded files
run: ls -R

# - name: Read CSV
# id: csv
# uses: juliangruber/read-file-action@v1
# with:
# path: eval-ci-metrics.csv

# - name: Create Markdown Table
# uses: petems/csv-to-md-table-action@master
# id: csv-table-output
# with:
# csvinput: ${{ steps.csv.outputs.content }}

# - name: Post Table as a Comment
# uses: peter-evans/create-or-update-comment@v4
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# repository: ${{ github.repository }}
# issue-number: ${{ github.event.pull_request.number }}
# body: |
# ### Evaluation Metrics
# ${{steps.csv-table-output.outputs.markdown-table}}
29 changes: 27 additions & 2 deletions .github/workflows/eval-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Post Eval Metrics

on:
# Runs with read & write privilages for the GITHUB_TOKEN
workflow_run:
workflows: ["Evaluate"]
types:
Expand All @@ -18,7 +19,31 @@ jobs:
uses: actions/download-artifact@v4
with:
name: eval-metrics
path: eval-metrics-artifact/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
run-id: ${{ github.run_id }}

- name: Display structure of downloaded files
run: ls -R
run: ls -R

- name: Read CSV
id: csv
uses: juliangruber/read-file-action@v1
with:
path: eval-metrics-artifact/eval-ci-metrics.csv

- name: Create Markdown Table
uses: petems/csv-to-md-table-action@master
id: csv-table-output
with:
csvinput: ${{ steps.csv.outputs.content }}

- name: Post Table as a Comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
issue-number: ${{ github.event.pull_request.number }}
body: |
### Evaluation Metrics
${{steps.csv-table-output.outputs.markdown-table}}

0 comments on commit 5959808

Please sign in to comment.