-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add boilerplate NEX-MAXIMUS unit test generation workflow
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: ON-BOARDING-NEW-BRANCH | ||
on: | ||
workflow_dispatch | ||
jobs: | ||
Checkout: | ||
runs-on: [self-hosted, maximus-unit-test] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
CREATE-PR: | ||
needs: Checkout | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Create GenAI Branch and PR | ||
steps: | ||
- id: maximus-create-pr-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/create-pr@feature/genai_ut_eval_release | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: UNIT-TEST-GEN-ALL | ||
on: | ||
workflow_dispatch: | ||
# pull_request: | ||
jobs: | ||
Checkout: | ||
if: startsWith(github.ref, 'refs/heads/NEX_MAXIMUS_UT/') | ||
runs-on: [self-hosted, maximus-unit-test] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
CREATE-USER-RUN-ENV: | ||
needs: Checkout | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Create User Run Environment | ||
steps: | ||
- id: maximus-create-env-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/create-env@feature/genai_ut_eval_release | ||
env: | ||
# <Input relative filepath of your requirements.txt path i.e. dir-name/requirements.txt > | ||
REQUIREMENTS_PATH: requirements.txt | ||
|
||
GENAI-UNIT-TEST-GENERATE: | ||
needs: CREATE-USER-RUN-ENV | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Generate Unit Tests using GenAI | ||
steps: | ||
- id: maximus-ut-gen-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/unit-test@feature/genai_ut_eval_release | ||
env: | ||
TASK_TYPE: generate | ||
# INCLUDE_PATHS: <Include your paths here if want to generate UT on specific files/dirs> | ||
# EXCLUDE_PATHS: <Exclude your paths here if want to exclude specific files/dirs> | ||
|
||
UNIT-TEST-RUN: | ||
needs: GENAI-UNIT-TEST-GENERATE | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Run Unit Tests | ||
steps: | ||
- id: maximus-ut-run-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/unit-test@feature/genai_ut_eval_release | ||
env: | ||
TASK_TYPE: run | ||
# INCLUDE_PATHS: <Include your paths here if want to run UT on specific files/dirs> | ||
# EXCLUDE_PATHS: <Exclude your paths here if want to exclude specific files/dirs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: UNIT-TEST-RUN-WORKFLOW-DISPATCH | ||
on: | ||
workflow_dispatch | ||
jobs: | ||
Checkout: | ||
if: startsWith(github.ref, 'refs/heads/NEX_MAXIMUS_UT/') | ||
runs-on: [self-hosted, maximus-unit-test] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
CREATE-USER-RUN-ENV: | ||
needs: Checkout | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Create User Run Environment | ||
steps: | ||
- id: maximus-create-env-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/create-env@feature/genai_ut_eval_release | ||
env: | ||
# <Input relative filepath of your requirements.txt path i.e. dir-name/requirements.txt > | ||
REQUIREMENTS_PATH: requirements.txt | ||
|
||
UNIT-TEST-RUN: | ||
needs: CREATE-USER-RUN-ENV | ||
runs-on: [self-hosted, maximus-unit-test] | ||
name: Run Unit Tests | ||
steps: | ||
- id: genai-maximus-action | ||
uses: intel-innersource/frameworks.actions.maximus.genai-gpt/unit-test@feature/genai_ut_eval_release | ||
env: | ||
TASK_TYPE: run | ||
# INCLUDE_PATHS: <Include your paths here if want to run UT on specific files/dirs> | ||
# EXCLUDE_PATHS: <Exclude your paths here if want to exclude specific files/dirs> |