Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/modelcard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: modelcard-test

on:
pull_request:
branches: [main]
branches:
- main
push:
branches:
- demos/*
workflow_dispatch:

jobs:
Expand All @@ -13,8 +17,9 @@ jobs:
uses: actions/checkout@v3

- name: Check for model card file
uses: CompliancePal/modelcard-action@mlflow-action-experiments
env:
MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }}
uses: CompliancePal/modelcard-action@61-action-core
# env:
# MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }}
with:
modelcard: modelcard.yaml
rules: .rules
7 changes: 7 additions & 0 deletions .rules/rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
model-documentation:
message: '{{error}}'
given: '$.model_details'
then:
- function: truthy
field: documentation
5 changes: 3 additions & 2 deletions modelcard.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
model_details:
name: Wine prediction
documentation: |
I now have documentation
version:
name: 1.0.0
date: 2022-11-03
run:
id: 2a84d204c6794965bc36641b46b77255
type: mlflow
id: 7d0ad972fa5a40db90f075c5325a5611