Skip to content

Runyang2

Runyang2 #1

name: Model PR Validation
on:
pull_request:
branches: [main, master]
types: [opened, synchronize, reopened, edited, ready_for_review]
permissions:
contents: read
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies (CPU Torch)
run: |
python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install -e .
- name: Review model PR
run: |
python scripts/review_model_pr.py \
--event "$GITHUB_EVENT_PATH" \
--base-sha "${{ github.event.pull_request.base.sha }}" \
--report-json .github/reports/model-pr-review.json \
--report-md .github/reports/model-pr-review.md
- name: Upload model review report
if: always()
uses: actions/upload-artifact@v4
with:
name: model-pr-review
path: .github/reports
if-no-files-found: error