Skip to content

Commit

Permalink
[FSTORE-972] GitHub Actions for Tutorials (#195)
Browse files Browse the repository at this point in the history
* GitHub Actions

* Changed run condition

* Workflows Update

* Update requirements.txt

* Change workflow run condition

* Loan Approval
  • Loading branch information
Maxxx-zh authored Aug 10, 2023
1 parent 6764a70 commit 2572494
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 216 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: test-tutorials-python-37
name: test-tutorials-python-310

on:
workflow_dispatch:
# push:
# branches:
# - 'master'

push:
branches:
- 'master'
jobs:
test_schedule:
runs-on: ubuntu-latest
Expand All @@ -16,7 +16,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.7.14'
python-version: '3.10'

- name: install python packages
run: |
Expand All @@ -25,6 +25,6 @@ jobs:
- name: execute python workflows from bash script
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY_37 }}
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY_310 }}
run: ./scripts/test-notebooks.sh

8 changes: 4 additions & 4 deletions .github/workflows/test-python-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test-tutorials-python-38

on:
workflow_dispatch:
# push:
# branches:
# - 'master'
push:
branches:
- 'master'

jobs:
test_schedule:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.8.14'
python-version: '3.8'

- name: install python packages
run: |
Expand Down
70 changes: 5 additions & 65 deletions .github/workflows/test-python-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test-tutorials-python-39

on:
workflow_dispatch:
# push:
# branches:
# - 'master'
push:
branches:
- 'master'

jobs:
test_schedule:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.9.9'
python-version: '3.9'

- name: install python packages
run: |
Expand All @@ -26,64 +26,4 @@ jobs:
- name: execute python workflows from bash script
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY_39 }}
run: ./scripts/test-notebooks.sh

- name: github pages update
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Prediction Plot Update"

# Optional. Local and remote branch name where commit is going to be pushed
# to. Defaults to the current branch.
# You might need to set `create_branch: true` if the branch does not exist.
branch: master

# Optional. Options used by `git-commit`.
# See https://git-scm.com/docs/git-commit#_options
commit_options: '--no-verify --signoff'

# Optional glob pattern of files which should be added to the commit
# Defaults to all (.)
file_pattern: images/model_preds.png

# Optional. Local file path to the repository.
# Defaults to the root of the repository.
repository: .

# Optional commit user and author settings
commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
commit_user_email: [email protected] # defaults to "github-actions[bot]@users.noreply.github.com"
commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run

# Optional. Tag name being created in the local repository and
# pushed to remote repository and defined branch.
#tagging_message: 'v1.0.0'

# Optional. Option used by `git-status` to determine if the repository is
# dirty. See https://git-scm.com/docs/git-status#_options
#status_options: '--untracked-files=no'

# Optional. Options used by `git-add`.
# See https://git-scm.com/docs/git-add#_options
#add_options: '-u'

# Optional. Options used by `git-push`.
# See https://git-scm.com/docs/git-push#_options
#push_options: '--force'

# Optional. Disable dirty check and always try to create a commit and push
skip_dirty_check: true

# Optional. Skip internal call to `git fetch`
skip_fetch: true

# Optional. Skip internal call to `git checkout`
skip_checkout: true

# Optional. Prevents the shell from expanding filenames.
# Details: https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
disable_globbing: true

# Optional. Create given branch name in local and remote repository.
create_branch: false

run: ./scripts/test-notebooks.sh
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ python-dotenv
parsedatetime
hsfs[python]
hopsworks
jupyter
ipykernel
nbconvert
scikit-learn
gradio
plotly
Pillow
seaborn
Expand Down
Loading

0 comments on commit 2572494

Please sign in to comment.