Skip to content

Commit

Permalink
feat(ci): generate a PR after benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Mar 17, 2024
1 parent 800dc5a commit 905656e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
name: Build with Benchmarks
needs: build
runs-on: [self-hosted, benchmarks]
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- run: |
Expand All @@ -38,10 +41,16 @@ jobs:
just benchmarks
- uses: actions/upload-artifact@v3
with:
name: ${{ github.run_id }}-weight-files
path: ./runtime/kreivo/src/weights
- uses: actions/upload-artifact@v3
name: ${{ github.run_id }}-benchmark_logs
path: ./.benchmarking-logs
- uses: peter-evans/create-pull-request@v6
with:
name: ${{ github.run_id }}-benchmark_logs
path: ./.benchmarking-logs
# TODO: Generate the PR based on the resulting files
add-paths: runtime/kreivo/src/weights
commit-message: '[ci] calculate weights'
branch: benchmarks
branch-suffix: ${{ github.sha }}
title: "Benchmarking: Calculate weights for ${{ github.sha }}"
body: |
This Pull Request is automatically raised when pushing over `master`
and should be resolved and reviewed manually.
assignees: ${{ github.actor_id }}
4 changes: 2 additions & 2 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-target-cache
key: ${{ runner.os }}-${{ github.ref }}-target-cache
- run: just check

tests:
Expand All @@ -24,5 +24,5 @@ jobs:
- uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-target-cache
key: ${{ runner.os }}-${{ github.ref }}-target-cache
- run: just test

0 comments on commit 905656e

Please sign in to comment.