forked from intel/intel-inb-manageability
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.41 KB
/
UNIT-TEST-RUN-WORKFLOW-DISPATCH.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: UNIT-TEST-RUN-WORKFLOW-DISPATCH
on:
workflow_dispatch
permissions: read-all
jobs:
Checkout:
if: startsWith(github.ref, 'refs/heads/NEX_MAXIMUS_UT/')
runs-on: [self-hosted, maximus-unit-test-os]
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-os]
name: Create User Run Environment
steps:
- id: maximus-create-env-action
run: |
cd ../../../genai_ut_gen
bash ./create_user_env.sh
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
# <Input relative filepath of your requirements.txt path i.e. dir-name/requirements.txt >
REQUIREMENTS_PATH: requirements.txt
UNIT-TEST-RUN:
permissions:
contents: write
pull-requests: write
needs: CREATE-USER-RUN-ENV
runs-on: [self-hosted, maximus-unit-test-os]
name: Run Unit Tests
steps:
- id: genai-maximus-action
run: |
cd ../../../genai_ut_gen
cp /home/runner/scripts/.env .
chmod +x ./get_unittest_details.sh
./get_unittest_details.sh
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
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>