Skip to content

Add Weekly job for model analysis #1

Add Weekly job for model analysis

Add Weekly job for model analysis #1

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: in-service
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 }}