|
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" |
@@ -494,21 +499,17 @@ jobs: |
494 | 499 | run: | |
495 | 500 | if [ -f "poetry.lock" ] |
496 | 501 | then |
497 | | - python${{ env.PYTHON_VERSION }} -m pip install poetry==${{ env.POETRY_VERSION }} poetry-plugin-export==${{ env.POETRY_EXPORT_PLUGIN_VERSION }} |
| 502 | + python${{ env.PYTHON_VERSION }} -m pip install poetry==${{ env.POETRY_VERSION }} poetry-plugin-export==${{ env.POETRY_EXPORT_PLUGIN_VERSION }} |
498 | 503 | mkdir -p package/lib || true |
499 | 504 | poetry check --lock |
500 | | - poetry export --without-hashes -o package/lib/requirements.txt |
501 | | - fi |
502 | | - if [ ! -f dev_deps/requirements_dev.txt ]; then |
503 | | - echo "No dev_deps/requirements_dev.txt. Migrate your dependencies to dev_deps/requirements_dev.txt" |
504 | | - exit 1 |
505 | | - else |
506 | | - echo "Found dev_deps/requirements_dev.txt. Installing dev dependencies in an isolated environment"; |
| 505 | + poetry export --without-hashes --with dev -o package/lib/requirements.txt |
| 506 | + else |
| 507 | + echo "No poetry.lock found, make sure your dependencies are managed through poetry, exiting" |
| 508 | + exit 1 |
507 | 509 | fi |
508 | 510 | git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com |
509 | 511 | git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://[email protected] |
510 | 512 | python${{ env.PYTHON_VERSION }} -m venv ~/.dev_venv |
511 | | - ~/.dev_venv/bin/python${{ env.PYTHON_VERSION }} -m pip install -r dev_deps/requirements_dev.txt |
512 | 513 | ~/.dev_venv/bin/python${{ env.PYTHON_VERSION }} -m pip install -r package/lib/requirements.txt |
513 | 514 | - name: Create directories |
514 | 515 | run: | |
@@ -573,6 +574,8 @@ jobs: |
573 | 574 | python-version: ${{ env.PYTHON_VERSION }} |
574 | 575 | - name: create requirements file for pip |
575 | 576 | run: | |
| 577 | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com |
| 578 | + git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://[email protected] |
576 | 579 | if [ -f "poetry.lock" ] |
577 | 580 | then |
578 | 581 | echo " poetry.lock found " |
|
0 commit comments