|
39 | 39 | required: false |
40 | 40 | description: "branch for k8s manifests to run the tests on" |
41 | 41 | type: string |
42 | | - default: "v3.6" |
| 42 | + default: "v4.0" |
43 | 43 | scripted-inputs-os-list: |
44 | 44 | required: false |
45 | 45 | description: "list of OS used for scripted input tests" |
|
57 | 57 | description: "Forces WFE tests to run only on the latest Splunk when set to true. When set to false - will run on all supported Splunk versions required for the release. When not set - default behavior." |
58 | 58 | type: string |
59 | 59 | default: "false" |
| 60 | + python-version: |
| 61 | + required: false |
| 62 | + description: "Python version to use for testing" |
| 63 | + type: string |
| 64 | + default: "3.9" |
60 | 65 | secrets: |
61 | 66 | GH_TOKEN_ADMIN: |
62 | 67 | description: Github admin token |
@@ -110,7 +115,7 @@ concurrency: |
110 | 115 | group: ${{ github.head_ref || github.run_id }} |
111 | 116 | cancel-in-progress: true |
112 | 117 | env: |
113 | | - PYTHON_VERSION: "3.9" |
| 118 | + PYTHON_VERSION: ${{ inputs.python-version }} |
114 | 119 | POETRY_VERSION: "2.1.4" |
115 | 120 | POETRY_EXPORT_PLUGIN_VERSION: "1.9.0" |
116 | 121 | GS_IMAGE_VERSION: "1.0.0" |
@@ -489,16 +494,13 @@ jobs: |
489 | 494 | run: | |
490 | 495 | if [ -f "poetry.lock" ] |
491 | 496 | then |
492 | | - python${{ env.PYTHON_VERSION }} -m pip install poetry==${{ env.POETRY_VERSION }} poetry-plugin-export==${{ env.POETRY_EXPORT_PLUGIN_VERSION }} |
| 497 | + python${{ env.PYTHON_VERSION }} -m pip install poetry==${{ env.POETRY_VERSION }} poetry-plugin-export==${{ env.POETRY_EXPORT_PLUGIN_VERSION }} |
493 | 498 | mkdir -p package/lib || true |
494 | 499 | poetry check --lock |
495 | | - poetry export --without-hashes -o package/lib/requirements.txt |
496 | | - fi |
497 | | - if [ ! -f dev_deps/requirements_dev.txt ]; then |
498 | | - echo "No dev_deps/requirements_dev.txt. Migrate your dependencies to dev_deps/requirements_dev.txt" |
499 | | - exit 1 |
500 | | - else |
501 | | - echo "Found dev_deps/requirements_dev.txt. Installing dev dependencies in an isolated environment"; |
| 500 | + poetry export --without-hashes --with dev -o package/lib/requirements.txt |
| 501 | + else |
| 502 | + echo "No poetry.lock found, make sure your dependencies are managed through poetry, exiting" |
| 503 | + exit 1 |
502 | 504 | fi |
503 | 505 | git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com |
504 | 506 | git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://[email protected] |
@@ -568,6 +570,8 @@ jobs: |
568 | 570 | python-version: ${{ env.PYTHON_VERSION }} |
569 | 571 | - name: create requirements file for pip |
570 | 572 | run: | |
| 573 | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com |
| 574 | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://[email protected] |
571 | 575 | if [ -f "poetry.lock" ] |
572 | 576 | then |
573 | 577 | echo " poetry.lock found " |
|
0 commit comments