Skip to content

Commit fda768d

Browse files
authored
Merge pull request #17 from NembotJules/main
Updated the Gradio Input command
2 parents 01cbcd4 + ca2a597 commit fda768d

12 files changed

Lines changed: 1344 additions & 207 deletions

.github/workflows/features-and-predictions.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: iris-feature-and-prediction-pipelines
22

33
on:
44
workflow_dispatch:
5-
# schedule:
6-
# - cron: '11 11 * * *'
5+
schedule:
6+
- cron: '00 00 * * *'
77

88
jobs:
99
test_schedule:
@@ -13,9 +13,21 @@ jobs:
1313
uses: actions/checkout@v2
1414

1515
- name: setup python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v3
1717
with:
18-
python-version: '3.8.1'
18+
python-version: '3.10.9'
19+
20+
- name: Install Jupyter
21+
run: |
22+
python -m pip install jupyter
23+
24+
- name: List Jupyter Kernels
25+
run: jupyter kernelspec list
26+
27+
- name: Install scikit-learn
28+
run: python -m pip install scikit-learn==1.2.1
29+
30+
1931

2032
- name: install python packages
2133
run: |

.github/workflows/main.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: iris-feature-and-prediction-pipelines
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '00 00 * * *'
7+
8+
jobs:
9+
test_schedule:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout repo content
13+
uses: actions/checkout@v2
14+
15+
- name: setup python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.10.9'
19+
20+
- name: Install Jupyter
21+
run: |
22+
python -m pip install jupyter
23+
24+
- name: install python packages
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: execute python workflows from bash script
30+
env:
31+
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}
32+
run: ./src/01-module/scripts/run-feature-and-prediction-pipelines.sh
33+
34+
- name: publish github pages
35+
uses: stefanzweifel/git-auto-commit-action@v4
36+
with:
37+
commit_message: "Automated graph published"
38+
39+
# Optional. Local and remote branch name where commit is going to be pushed
40+
# to. Defaults to the current branch.
41+
# You might need to set `create_branch: true` if the branch does not exist.
42+
branch: main
43+
44+
# Optional. Options used by `git-commit`.
45+
# See https://git-scm.com/docs/git-commit#_options
46+
commit_options: '--no-verify --signoff'
47+
48+
# Optional glob pattern of files which should be added to the commit
49+
# Defaults to all (.)
50+
file_pattern: assets/latest_iris.png assets/actual_iris.png assets/confusion_matrix.png assets/df_recent.png
51+
52+
# Optional. Local file path to the repository.
53+
# Defaults to the root of the repository.
54+
repository: .
55+
56+
# Optional commit user and author settings
57+
commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
58+
commit_user_email: my-github-actions-bot@example.org # defaults to "github-actions[bot]@users.noreply.github.com"
59+
commit_author: Author <actions@github.com> # defaults to author of the commit that triggered the run
60+
61+
# Optional. Tag name being created in the local repository and
62+
# pushed to remote repository and defined branch.
63+
#tagging_message: 'v1.0.0'
64+
65+
# Optional. Option used by `git-status` to determine if the repository is
66+
# dirty. See https://git-scm.com/docs/git-status#_options
67+
#status_options: '--untracked-files=no'
68+
69+
# Optional. Options used by `git-add`.
70+
# See https://git-scm.com/docs/git-add#_options
71+
#add_options: '-u'
72+
73+
# Optional. Options used by `git-push`.
74+
# See https://git-scm.com/docs/git-push#_options
75+
#push_options: '--force'
76+
77+
# Optional. Disable dirty check and always try to create a commit and push
78+
skip_dirty_check: true
79+
80+
# Optional. Skip internal call to `git fetch`
81+
skip_fetch: false
82+
83+
# Optional. Skip internal call to `git checkout`
84+
skip_checkout: false
85+
86+
# Optional. Prevents the shell from expanding filenames.
87+
# Details: https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
88+
disable_globbing: true
89+
90+
# Optional. Create given branch name in local and remote repository.
91+
create_branch: false

assets/confusion_matrix.png

-1.38 KB
Loading

assets/df_recent.png

6.42 KB
Loading
-9.28 KB
Binary file not shown.
17.9 KB
Loading

0 commit comments

Comments
 (0)