-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bd0d30
commit 86dd8fd
Showing
8 changed files
with
177 additions
and
94 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Model Analysis Weekly | ||
|
||
on: | ||
workflow_dispatch: | ||
# schedule: | ||
# - cron: '0 23 * * 5' # 11:00 PM UTC Friday (12:00 AM Saturday Serbia) | ||
push: | ||
branches: ["pchandrasekaran/model_analysis_weekly_job"] | ||
|
||
jobs: | ||
build-and-push-test: | ||
uses: ./.github/workflows/build-and-test.yml | ||
secrets: inherit | ||
with: | ||
test_mark: 'push' | ||
|
||
model-analysis: | ||
needs: build-and-push-test | ||
runs-on: ${{ needs.build-and-push-test.outputs.matrix.build.runs-on }} | ||
steps: | ||
- name: Run Model Analysis Script | ||
shell: bash | ||
run: | | ||
source env/activate | ||
python scripts/model_analysis.py \ | ||
--test_directory_or_file_path forge/test/models/pytorch \ | ||
--dump_failure_logs \ | ||
--markdown_directory_path ./model_analysis_docs \ | ||
--unique_ops_output_directory_path ./models_unique_ops_output \ | ||
2>&1 | tee model_analysis.log | ||
- name: Upload Model Analysis Script Logs | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: model-analysis-outputs | ||
path: model_analysis.log | ||
|
||
- name: Upload Models Unique Ops test Failure Logs | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: unique-ops-logs | ||
path: ./models_unique_ops_output | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
branch: model_analysis | ||
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
base: main | ||
commit-message: "Update model analysis docs" | ||
title: "Update model analysis docs" | ||
body: "This PR will update model analysis docs" | ||
labels: model_analysis | ||
delete-branch: true | ||
files: ./model_analysis_docs | ||
token: ${{ secrets.GH_TOKEN }} |
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
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
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
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
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
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