Skip to content

Commit

Permalink
Update workflow to run on test2 branch and add Python setup and scrip…
Browse files Browse the repository at this point in the history
…t execution
  • Loading branch information
mijanr committed Mar 16, 2024
1 parent d22f2db commit 90b8418
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update README
on:
push:
branches:
- main
- test2

jobs:
update-readme:
Expand All @@ -13,6 +13,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mlflow
- name: Run script
run: python results/gen_result.py

- name: Commit results if it changed
run: |
git diff --exit-code --quiet results/best_runs.md || (git add results/best_runs.md && git commit -m "Update best runs")
- name: Replace results in README
run: |
results=$(cat results/best_runs.md) # Read the results
Expand Down

0 comments on commit 90b8418

Please sign in to comment.