Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit c4d8dee

Browse files
committed
fix: cleanup
1 parent 80c4122 commit c4d8dee

File tree

3 files changed

+131
-131
lines changed

3 files changed

+131
-131
lines changed

.github/workflows/generate-model-config.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ on:
1616
jobs:
1717
generate-config:
1818
runs-on: ubuntu-latest
19-
19+
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
25-
25+
2626
- name: Set up Python
2727
uses: actions/setup-python@v4
2828
with:
2929
python-version: '3.9'
30-
30+
3131
- name: Cache pip dependencies
3232
uses: actions/cache@v3
3333
with:
3434
path: ~/.cache/pip
3535
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt', '**/pyproject.toml') }}
3636
restore-keys: |
3737
${{ runner.os }}-pip-
38-
38+
3939
- name: Install dependencies
4040
run: |
4141
python -m pip install --upgrade pip
@@ -47,18 +47,18 @@ jobs:
4747
fi
4848
# Install additional dependencies that might be needed
4949
pip install pathlib datetime
50-
50+
5151
- name: Create docs directory
5252
run: |
5353
mkdir -p docs
54-
54+
5555
- name: Run model configuration generator
5656
run: |
5757
cd ${{ github.workspace }}
5858
python tests/generate_model_config.py
5959
env:
6060
PYTHONPATH: ${{ github.workspace }}/src
61-
61+
6262
- name: Check if model config was generated
6363
run: |
6464
if [ -f docs/model_config.js ]; then
@@ -72,52 +72,52 @@ jobs:
7272
echo "❌ Model configuration file was not generated"
7373
exit 1
7474
fi
75-
75+
7676
- name: Commit and push changes
7777
if: github.event_name != 'pull_request'
7878
run: |
7979
git config --local user.email "[email protected]"
8080
git config --local user.name "GitHub Action"
81-
81+
8282
if [ -n "$(git status --porcelain docs/model_config.js)" ]; then
8383
git add docs/model_config.js
8484
git commit -m "🤖 Auto-update model configuration
85-
85+
8686
- Generated from EMD Python model definitions
8787
- Updated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
8888
- Triggered by: ${{ github.event_name }}
8989
- Commit: ${{ github.sha }}"
90-
90+
9191
git push
9292
echo "✅ Model configuration updated and committed"
9393
else
9494
echo "ℹ️ No changes to model configuration"
9595
fi
96-
96+
9797
- name: Upload model config as artifact
9898
uses: actions/upload-artifact@v3
9999
with:
100100
name: model-config
101101
path: docs/model_config.js
102102
retention-days: 30
103-
103+
104104
- name: Generate summary
105105
run: |
106106
echo "## 📊 Model Configuration Generation Summary" >> $GITHUB_STEP_SUMMARY
107107
echo "" >> $GITHUB_STEP_SUMMARY
108-
108+
109109
if [ -f docs/model_config.js ]; then
110110
echo "✅ **Status**: Successfully generated" >> $GITHUB_STEP_SUMMARY
111111
echo "📁 **Output**: \`docs/model_config.js\`" >> $GITHUB_STEP_SUMMARY
112112
echo "📏 **Size**: $(wc -c < docs/model_config.js) bytes" >> $GITHUB_STEP_SUMMARY
113113
echo "📄 **Lines**: $(wc -l < docs/model_config.js)" >> $GITHUB_STEP_SUMMARY
114114
echo "" >> $GITHUB_STEP_SUMMARY
115-
115+
116116
# Extract model count from the generated file if possible
117117
if grep -q "getModelCount" docs/model_config.js; then
118118
echo "🎯 **Generated**: Model configuration with helper functions" >> $GITHUB_STEP_SUMMARY
119119
fi
120-
120+
121121
echo "" >> $GITHUB_STEP_SUMMARY
122122
echo "### 📋 Generated Configuration Includes:" >> $GITHUB_STEP_SUMMARY
123123
echo "- 🤖 Model definitions and metadata" >> $GITHUB_STEP_SUMMARY
@@ -128,4 +128,4 @@ jobs:
128128
else
129129
echo "❌ **Status**: Generation failed" >> $GITHUB_STEP_SUMMARY
130130
echo "Please check the workflow logs for details." >> $GITHUB_STEP_SUMMARY
131-
fi
131+
fi

0 commit comments

Comments
 (0)