-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from elimu-ai/12-schedule-nightly-build-of-model
chore: nightly build
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Python application (PMML, Nightly Build) | ||
|
||
on: | ||
schedule: | ||
# - cron: 00 03 * * * | ||
- cron: 00 * * * * | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: pmml | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Run All Steps (1-3) | ||
run: | | ||
python run_all_steps.py | ||
- name: Git Config | ||
run: | | ||
git config user.name 'Nya Ξlimu' | ||
git config user.email '[email protected]' | ||
- name: Git Commit | ||
run: | | ||
git add step1_prepare/* | ||
git add step2_train/* | ||
git add step3_predict/* | ||
git commit -m 'chore(ml): nightly build' | ||
- name: Git Push | ||
run: | | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters