mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-08 17:23:43 +08:00
ebb5cc12f5
* ci: don't pay the big model tax yet * skip big in release
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: "model review"
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
paths:
|
|
- 'openpilot/selfdrive/modeld/models/*.onnx'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
GIT_CONFIG_COUNT: 1
|
|
GIT_CONFIG_KEY_0: lfs.fetchexclude
|
|
GIT_CONFIG_VALUE_0: openpilot/selfdrive/modeld/models/big_driving_supercombo.onnx
|
|
|
|
jobs:
|
|
comment:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'commaai/openpilot'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
submodules: true
|
|
- name: Checkout master
|
|
uses: actions/checkout@v7
|
|
with:
|
|
ref: master
|
|
path: base
|
|
- run: git lfs pull
|
|
- run: cd base && git lfs pull
|
|
|
|
- name: scripts/reporter.py
|
|
id: report
|
|
run: |
|
|
echo "content<<EOF" >> $GITHUB_OUTPUT
|
|
echo "## Model Review" >> $GITHUB_OUTPUT
|
|
PYTHONPATH=${{ github.workspace }} MASTER_PATH=${{ github.workspace }}/base python scripts/reporter.py >> $GITHUB_OUTPUT
|
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
|
|
- name: Post model report comment
|
|
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0
|
|
with:
|
|
header: model-review
|
|
message: ${{ steps.report.outputs.content }}
|