Skip to content

Commit 313f1ab

Browse files
committed
massive overhaul and new 9 examples
1 parent b1c518c commit 313f1ab

File tree

105 files changed

+4587
-1335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+4587
-1335
lines changed

.github/workflows/example_belt.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# File: example_belt.yml
2+
# Author: Ryoichi Ando ([email protected])
3+
# License: Apache v2.0
4+
5+
name: belt.ipynb
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
runner:
11+
type: string
12+
required: true
13+
description: 'Runner Name'
14+
15+
env:
16+
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
18+
EXAMPLE_NAME: belt
19+
HELPER_PATH: .github/workflows/vast/helper.sh
20+
21+
jobs:
22+
run:
23+
runs-on: ${{ github.event.inputs.runner }}
24+
steps:
25+
26+
- name: check out repo
27+
uses: actions/checkout@v3
28+
29+
- name: print scene
30+
run: |
31+
echo "Scene: $EXAMPLE_NAME" >> $GITHUB_STEP_SUMMARY
32+
33+
- name: prepare
34+
timeout-minutes: 30
35+
run: bash $HELPER_PATH create $VAST_API_KEY
36+
37+
- name: 1st run
38+
timeout-minutes: 40
39+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 1st
40+
41+
- name: 2nd run
42+
timeout-minutes: 40
43+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 2nd
44+
45+
- name: 3rd run
46+
timeout-minutes: 40
47+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 3rd
48+
49+
- name: 4th run
50+
timeout-minutes: 40
51+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 4th
52+
53+
- name: 5th run
54+
timeout-minutes: 40
55+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 5th
56+
57+
- name: 6th run
58+
timeout-minutes: 40
59+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 6th
60+
61+
- name: 7th run
62+
timeout-minutes: 40
63+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 7th
64+
65+
- name: 8th run
66+
timeout-minutes: 40
67+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 8th
68+
69+
- name: 9th run
70+
timeout-minutes: 40
71+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 9th
72+
73+
- name: 10th run
74+
timeout-minutes: 40
75+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 10th
76+
77+
- name: collect
78+
if: success() || failure()
79+
run: bash $HELPER_PATH collect
80+
81+
- name: upload artifact
82+
if: success() || failure()
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: ci-belt
86+
path: ci
87+
retention-days: 30
88+
89+
- name: shutdown
90+
if: always()
91+
run: bash $HELPER_PATH delete
92+
93+
notify_failure:
94+
runs-on: ubuntu-latest
95+
needs: run
96+
if: ${{ failure() }}
97+
steps:
98+
99+
- name: Slack Notification Failure
100+
uses: rtCamp/action-slack-notify@v2
101+
env:
102+
SLACK_TITLE: Deploy / Failure
103+
SLACK_COLOR: danger
104+
SLACK_MESSAGE: One or more tests failed.

.github/workflows/example_codim.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# File: example_codim.yml
2+
# Author: Ryoichi Ando ([email protected])
3+
# License: Apache v2.0
4+
5+
name: codim.ipynb
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
runner:
11+
type: string
12+
required: true
13+
description: 'Runner Name'
14+
15+
env:
16+
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
18+
EXAMPLE_NAME: codim
19+
HELPER_PATH: .github/workflows/vast/helper.sh
20+
21+
jobs:
22+
run:
23+
runs-on: ${{ github.event.inputs.runner }}
24+
steps:
25+
26+
- name: check out repo
27+
uses: actions/checkout@v3
28+
29+
- name: print scene
30+
run: |
31+
echo "Scene: $EXAMPLE_NAME" >> $GITHUB_STEP_SUMMARY
32+
33+
- name: prepare
34+
timeout-minutes: 30
35+
run: bash $HELPER_PATH create $VAST_API_KEY
36+
37+
- name: 1st run
38+
timeout-minutes: 40
39+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 1st
40+
41+
- name: 2nd run
42+
timeout-minutes: 40
43+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 2nd
44+
45+
- name: 3rd run
46+
timeout-minutes: 40
47+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 3rd
48+
49+
- name: 4th run
50+
timeout-minutes: 40
51+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 4th
52+
53+
- name: 5th run
54+
timeout-minutes: 40
55+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 5th
56+
57+
- name: 6th run
58+
timeout-minutes: 40
59+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 6th
60+
61+
- name: 7th run
62+
timeout-minutes: 40
63+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 7th
64+
65+
- name: 8th run
66+
timeout-minutes: 40
67+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 8th
68+
69+
- name: 9th run
70+
timeout-minutes: 40
71+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 9th
72+
73+
- name: 10th run
74+
timeout-minutes: 40
75+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 10th
76+
77+
- name: collect
78+
if: success() || failure()
79+
run: bash $HELPER_PATH collect
80+
81+
- name: upload artifact
82+
if: success() || failure()
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: ci-codim
86+
path: ci
87+
retention-days: 30
88+
89+
- name: shutdown
90+
if: always()
91+
run: bash $HELPER_PATH delete
92+
93+
notify_failure:
94+
runs-on: ubuntu-latest
95+
needs: run
96+
if: ${{ failure() }}
97+
steps:
98+
99+
- name: Slack Notification Failure
100+
uses: rtCamp/action-slack-notify@v2
101+
env:
102+
SLACK_TITLE: Deploy / Failure
103+
SLACK_COLOR: danger
104+
SLACK_MESSAGE: One or more tests failed.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# File: example_fishingknot.yml
2+
# Author: Ryoichi Ando ([email protected])
3+
# License: Apache v2.0
4+
5+
name: fishingknot.ipynb
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
runner:
11+
type: string
12+
required: true
13+
description: 'Runner Name'
14+
15+
env:
16+
VAST_API_KEY: ${{ secrets.VAST_API_KEY }}
17+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
18+
EXAMPLE_NAME: fishingknot
19+
HELPER_PATH: .github/workflows/vast/helper.sh
20+
21+
jobs:
22+
run:
23+
runs-on: ${{ github.event.inputs.runner }}
24+
steps:
25+
26+
- name: check out repo
27+
uses: actions/checkout@v3
28+
29+
- name: print scene
30+
run: |
31+
echo "Scene: $EXAMPLE_NAME" >> $GITHUB_STEP_SUMMARY
32+
33+
- name: prepare
34+
timeout-minutes: 30
35+
run: bash $HELPER_PATH create $VAST_API_KEY
36+
37+
- name: 1st run
38+
timeout-minutes: 40
39+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 1st
40+
41+
- name: 2nd run
42+
timeout-minutes: 40
43+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 2nd
44+
45+
- name: 3rd run
46+
timeout-minutes: 40
47+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 3rd
48+
49+
- name: 4th run
50+
timeout-minutes: 40
51+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 4th
52+
53+
- name: 5th run
54+
timeout-minutes: 40
55+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 5th
56+
57+
- name: 6th run
58+
timeout-minutes: 40
59+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 6th
60+
61+
- name: 7th run
62+
timeout-minutes: 40
63+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 7th
64+
65+
- name: 8th run
66+
timeout-minutes: 40
67+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 8th
68+
69+
- name: 9th run
70+
timeout-minutes: 40
71+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 9th
72+
73+
- name: 10th run
74+
timeout-minutes: 40
75+
run: bash $HELPER_PATH run ${EXAMPLE_NAME}.py 10th
76+
77+
- name: collect
78+
if: success() || failure()
79+
run: bash $HELPER_PATH collect
80+
81+
- name: upload artifact
82+
if: success() || failure()
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: ci-fishingknot
86+
path: ci
87+
retention-days: 30
88+
89+
- name: shutdown
90+
if: always()
91+
run: bash $HELPER_PATH delete
92+
93+
notify_failure:
94+
runs-on: ubuntu-latest
95+
needs: run
96+
if: ${{ failure() }}
97+
steps:
98+
99+
- name: Slack Notification Failure
100+
uses: rtCamp/action-slack-notify@v2
101+
env:
102+
SLACK_TITLE: Deploy / Failure
103+
SLACK_COLOR: danger
104+
SLACK_MESSAGE: One or more tests failed.

0 commit comments

Comments
 (0)