Skip to content

Commit 3d95577

Browse files
committed
improve scripts.
1 parent 175eca7 commit 3d95577

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,26 @@ jobs:
2828
python entrypoint.py --repo-id google-bert/bert-base-uncased
2929
env:
3030
HF_TOKEN: ${{ secrets.HF_TOKEN }}
31-
32-
docker:
31+
32+
testdocker:
3333
runs-on: ubuntu-latest
3434
needs: test
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@v4
3838

39-
- name: Build Docker Action
39+
- name: Build Docker Image
4040
run: docker build -t hf-model-inspector .
4141

42-
- name: Run Action (entrypoint.py)
42+
- name: Run Model Inspector inside Docker
4343
run: |
4444
docker run --rm \
45+
-e HF_TOKEN=${{ secrets.HF_TOKEN }} \
4546
-v ${{ github.workspace }}:/app \
4647
hf-model-inspector \
4748
python /app/entrypoint.py --repo-id moonshotai/Kimi-K2-Instruct-0905
4849
49-
- name: Check outputs
50+
- name: Verify Outputs
5051
run: |
5152
ls -lh
52-
cat model_inspection_report.md
53+
cat model_inspection_report.md || echo "⚠️ No report generated"

.github/workflows/test-gh-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test HF Model Inspector
1+
name: Test HF Model Inspector(GH Marketplace)
22

33
on:
44
workflow_dispatch:

.github/workflows/test-inspect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test HF Model Inspector
1+
name: Test HF Model Inspector(Smoke Test)
22

33
on:
44
push:

0 commit comments

Comments
 (0)