From a5541d59add461230ead33000a3d466c9d8190fe Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:26:04 +0700 Subject: [PATCH 1/3] chore: nightly build close #12 --- .github/workflows/pmml-nightly.yml | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/pmml-nightly.yml diff --git a/.github/workflows/pmml-nightly.yml b/.github/workflows/pmml-nightly.yml new file mode 100644 index 0000000..18f678c --- /dev/null +++ b/.github/workflows/pmml-nightly.yml @@ -0,0 +1,44 @@ +# 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, Nightly Build) + +on: + schedule: +# - cron: 00 03 * * * + - cron: 00 * * * * + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11"] + defaults: + run: + working-directory: pmml + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - 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 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 From db5c053bd6c7a8dfaff1581ff1636436281687f8 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:29:44 +0700 Subject: [PATCH 2/3] chore: nightly build #12 --- .github/workflows/pmml-nightly.yml | 13 ++----------- .github/workflows/pmml.yml | 3 --- .github/workflows/python-app.yml | 3 --- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pmml-nightly.yml b/.github/workflows/pmml-nightly.yml index 18f678c..4bea62a 100644 --- a/.github/workflows/pmml-nightly.yml +++ b/.github/workflows/pmml-nightly.yml @@ -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, Nightly Build) on: @@ -8,24 +5,18 @@ on: # - cron: 00 03 * * * - cron: 00 * * * * -permissions: - contents: read - jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11"] defaults: run: working-directory: pmml steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: - python-version: ${{ matrix.python-version }} + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/pmml.yml b/.github/workflows/pmml.yml index ce2400a..68eb0ef 100644 --- a/.github/workflows/pmml.yml +++ b/.github/workflows/pmml.yml @@ -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: diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8dfe299..f6b511f 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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: From 2857f537736c1ebb4c9c18fb969f13e5a4fa5453 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:33:38 +0700 Subject: [PATCH 3/3] chore: git config #12 --- .github/workflows/pmml-nightly.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pmml-nightly.yml b/.github/workflows/pmml-nightly.yml index 4bea62a..6b89ae4 100644 --- a/.github/workflows/pmml-nightly.yml +++ b/.github/workflows/pmml-nightly.yml @@ -24,6 +24,10 @@ jobs: - 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 'info@elimu.ai' - name: Git Commit run: | git add step1_prepare/*