|
9 | 9 | description: "to test UDF path detection"
|
10 | 10 | required: false
|
11 | 11 | default: "false"
|
| 12 | + iginx-conda-flag: |
| 13 | + # this step is only needed when using python3.13 by conda because latest conda supports py3.12, |
| 14 | + # and we use conda-forge to support 3.13. Thus, the required env would not be activated automatically |
| 15 | + # even when we use login mode of bash |
| 16 | + description: "whether to manually activate conda env before start IGinX" |
| 17 | + required: false |
| 18 | + default: "false" |
| 19 | + iginx-conda-env: |
| 20 | + description: "required conda env name" |
| 21 | + required: false |
| 22 | + default: "false" |
12 | 23 |
|
13 | 24 | runs:
|
14 | 25 | using: "composite" # Mandatory parameter
|
@@ -36,16 +47,18 @@ runs:
|
36 | 47 | name: Start IGinX
|
37 | 48 | shell: bash -el {0}
|
38 | 49 | run: |
|
39 |
| - which python |
| 50 | + if [ "${{ inputs.iginx-conda-flag }}" == "true" ]; then |
| 51 | + conda activate ${{ inputs.iginx-conda-env }} |
| 52 | + fi |
40 | 53 | if [ "$RUNNER_OS" == "Linux" ]; then
|
41 |
| - chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx.sh" |
42 |
| - "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx.sh" 6888 7888 |
| 54 | + chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx.sh" |
| 55 | + "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx.sh" 6888 7888 |
43 | 56 | elif [ "$RUNNER_OS" == "Windows" ]; then
|
44 |
| - chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_windows.sh" |
45 |
| - "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_windows.sh" 6888 7888 |
| 57 | + chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_windows.sh" |
| 58 | + "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_windows.sh" 6888 7888 |
46 | 59 | elif [ "$RUNNER_OS" == "macOS" ]; then
|
47 |
| - chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_macos.sh" |
48 |
| - "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_macos.sh" 6888 7888 |
| 60 | + chmod +x "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_macos.sh" |
| 61 | + "${GITHUB_WORKSPACE}/.github/scripts/iginx/iginx_macos.sh" 6888 7888 |
49 | 62 | fi
|
50 | 63 |
|
51 | 64 | - if: inputs.if-test-udf=='false' && inputs.if-stop=='true'
|
|
0 commit comments