Skip to content

Commit 25f2607

Browse files
Enable custom start commands and options to resolve GHA issues (#5189)
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 806873d commit 25f2607

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/python-tests.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on: [push, pull_request]
66
jobs:
77
Get-CI-Image-Tag:
88
uses: ./.github/workflows/get-ci-image-tag.yml
9+
with:
10+
product: opensearch
911

1012
python-tests:
1113
strategy:
@@ -17,7 +19,7 @@ jobs:
1719
env:
1820
PYTHON_VERSION: 3.9
1921
steps:
20-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2123
- name: Set up Python ${{ env.PYTHON_VERSION }}
2224
uses: actions/setup-python@v3
2325
with:
@@ -46,17 +48,17 @@ jobs:
4648
python-tests-linux:
4749
needs: Get-CI-Image-Tag
4850
runs-on: ubuntu-latest
49-
env:
50-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
5151
container:
5252
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
5353
# this image tag is subject to change as more dependencies and updates will arrive over time
5454
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
5555
# need to switch to root so that github actions can install runner binary on container without permission issues.
56-
options: --user root
56+
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
5757

5858
steps:
59-
- uses: actions/checkout@v3
59+
- name: Run start commands
60+
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
61+
- uses: actions/checkout@v4
6062
- name: Install Pipenv and Dependencies
6163
run: |
6264
pipenv install

0 commit comments

Comments
 (0)