Skip to content

Commit

Permalink
Merge pull request #16 from elimu-ai/12-schedule-nightly-build-of-model
Browse files Browse the repository at this point in the history
chore: nightly build
  • Loading branch information
jo-elimu authored Aug 19, 2024
2 parents ba3eb4b + 2857f53 commit d10a2dc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pmml-nightly.yml
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
3 changes: 0 additions & 3 deletions .github/workflows/pmml.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application (PMML)

on:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
Expand Down

0 comments on commit d10a2dc

Please sign in to comment.