diff --git a/.github/workflows/PR-validation.yml b/.github/workflows/PR-validation.yml index 92483a7f..c93e2ce3 100644 --- a/.github/workflows/PR-validation.yml +++ b/.github/workflows/PR-validation.yml @@ -62,9 +62,6 @@ jobs: shell: bash working-directory: ./api/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -72,6 +69,9 @@ jobs: sparse-checkout: | Makefile api/ + - uses: actions/setup-python@v5 + with: + python-version-file: "api/pyproject.toml" - name: Update lock files if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-deps-lock-updates') }} shell: bash @@ -126,9 +126,6 @@ jobs: shell: bash working-directory: ./shared_aws/py_package/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -136,6 +133,9 @@ jobs: sparse-checkout: | Makefile shared_aws/py_package/ + - uses: actions/setup-python@v5 + with: + python-version-file: "shared_aws/py_package/pyproject.toml" - name: Update lock files if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-deps-lock-updates') }} shell: bash @@ -182,7 +182,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/py_package/pyproject.toml" - name: Code typing test run: | make run-type-checks @@ -220,7 +220,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/py_package/pyproject.toml" - name: Build package run: | make clean build @@ -239,9 +239,6 @@ jobs: shell: bash working-directory: ./shared_aws/aws_infra/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -249,6 +246,9 @@ jobs: sparse-checkout: | Makefile shared_aws/aws_infra/ + - uses: actions/setup-python@v5 + with: + python-version-file: "shared_aws/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -303,7 +303,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/aws_infra/pyproject.toml" - name: Code typing test run: | make run-type-checks @@ -334,9 +334,6 @@ jobs: shell: bash working-directory: ./pipeline/aws_infra/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -344,6 +341,9 @@ jobs: sparse-checkout: | Makefile pipeline/aws_infra/ + - uses: actions/setup-python@v5 + with: + python-version-file: "pipeline/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -373,9 +373,6 @@ jobs: shell: bash working-directory: ./api/aws_infra/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -383,6 +380,9 @@ jobs: sparse-checkout: | Makefile api/aws_infra/ + - uses: actions/setup-python@v5 + with: + python-version-file: "api/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -412,9 +412,6 @@ jobs: shell: bash working-directory: ./webui/aws_infra/ steps: - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Check out repository code uses: actions/checkout@v4 with: @@ -422,6 +419,9 @@ jobs: sparse-checkout: | Makefile webui/aws_infra/ + - uses: actions/setup-python@v5 + with: + python-version-file: "webui/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -694,7 +694,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "pipeline/aws_infra/pyproject.toml" - name: Code typing test run: | make run-type-checks @@ -744,7 +744,7 @@ jobs: path: api/tests - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version-file: "api/pyproject.toml" - name: Code typing test run: | make run-type-checks @@ -855,7 +855,7 @@ jobs: docker load --input /tmp/pavi_alignment_docker_image.tar - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version-file: "api/pyproject.toml" - name: Run unit and integration tests run: | make run-tests @@ -903,7 +903,7 @@ jobs: docker load --input /tmp/pavi_api_docker_image.tar - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version-file: "api/pyproject.toml" # This step will configure environment variables to be used by all steps # involving AWS interaction further down - name: AWS credentials configuration @@ -951,7 +951,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "api/aws_infra/pyproject.toml" - name: Code typing test run: | make run-type-checks @@ -1006,7 +1006,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "webui/aws_infra/pyproject.toml" - name: Code typing test run: | make run-type-checks diff --git a/.github/workflows/main-build-and-deploy.yml b/.github/workflows/main-build-and-deploy.yml index b10c7196..30e07472 100644 --- a/.github/workflows/main-build-and-deploy.yml +++ b/.github/workflows/main-build-and-deploy.yml @@ -129,7 +129,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/py_package/pyproject.toml" - name: Build the pavi_shared_aws package working-directory: ./shared_aws/py_package run: | @@ -166,7 +166,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -210,7 +210,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "pipeline/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -253,7 +253,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "api/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -296,7 +296,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "webui/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: @@ -520,7 +520,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version-file: "shared_aws/aws_infra/pyproject.toml" - name: Download shared AWS package uses: actions/download-artifact@v4 with: diff --git a/api/.python-version b/api/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/api/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/api/aws_infra/.python-version b/api/aws_infra/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/api/aws_infra/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/pipeline/aws_infra/.python-version b/pipeline/aws_infra/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/pipeline/aws_infra/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/pipeline/seq_retrieval/.python-version b/pipeline/seq_retrieval/.python-version index fdcfcfdf..e4fba218 100644 --- a/pipeline/seq_retrieval/.python-version +++ b/pipeline/seq_retrieval/.python-version @@ -1 +1 @@ -3.12 \ No newline at end of file +3.12 diff --git a/shared_aws/aws_infra/.python-version b/shared_aws/aws_infra/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/shared_aws/aws_infra/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/shared_aws/py_package/.python-version b/shared_aws/py_package/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/shared_aws/py_package/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/webui/aws_infra/.python-version b/webui/aws_infra/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/webui/aws_infra/.python-version @@ -0,0 +1 @@ +3.12