From 354714acfaa3e7eb26f895cf7455eadf26c1017d Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 14 Feb 2024 22:45:40 +0400 Subject: [PATCH] Add .python-version files for lambdas --- .github/workflows/deploy-lambdas.yaml | 2 +- .github/workflows/py-ci.yml | 7 ++----- lambdas/access_counts/.python-version | 1 + lambdas/indexer/.python-version | 1 + lambdas/molecule/.python-version | 1 + lambdas/pkgevents/.python-version | 1 + lambdas/pkgpush/.python-version | 1 + lambdas/pkgselect/.python-version | 1 + lambdas/preview/.python-version | 1 + lambdas/s3hash/.python-version | 1 + lambdas/s3select/.python-version | 1 + lambdas/shared/.python-version | 1 + lambdas/status_reports/.python-version | 1 + lambdas/tabular_preview/.python-version | 1 + lambdas/thumbnail/.python-version | 1 + lambdas/transcode/.python-version | 1 + 16 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 lambdas/access_counts/.python-version create mode 100644 lambdas/indexer/.python-version create mode 100644 lambdas/molecule/.python-version create mode 100644 lambdas/pkgevents/.python-version create mode 100644 lambdas/pkgpush/.python-version create mode 100644 lambdas/pkgselect/.python-version create mode 100644 lambdas/preview/.python-version create mode 100644 lambdas/s3hash/.python-version create mode 100644 lambdas/s3select/.python-version create mode 100644 lambdas/shared/.python-version create mode 100644 lambdas/status_reports/.python-version create mode 100644 lambdas/tabular_preview/.python-version create mode 100644 lambdas/thumbnail/.python-version create mode 100644 lambdas/transcode/.python-version diff --git a/.github/workflows/deploy-lambdas.yaml b/.github/workflows/deploy-lambdas.yaml index e6e50556a3b..cd248e39cd9 100644 --- a/.github/workflows/deploy-lambdas.yaml +++ b/.github/workflows/deploy-lambdas.yaml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - name: Build zip run: | - BUILDER_IMAGE=quiltdata/lambda:build-3.8 + BUILDER_IMAGE=quiltdata/lambda:build-$(cat lambdas/${{ matrix.path }}/.python-version) touch ./out.zip diff --git a/.github/workflows/py-ci.yml b/.github/workflows/py-ci.yml index 4fdb1cbcd18..c1bf38440b4 100644 --- a/.github/workflows/py-ci.yml +++ b/.github/workflows/py-ci.yml @@ -166,11 +166,8 @@ jobs: - shared - status_reports - tabular_preview + - thumbnail - transcode - python-version: ['3.8'] - include: - - path: thumbnail - python-version: '3.9' runs-on: ubuntu-latest env: QUILT_DISABLE_USAGE_METRICS: true @@ -180,7 +177,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version-file: lambdas/${{ matrix.path }}/.python-version - name: Install dependencies run: | # Due to behavior change in pip>=23.1 installing tifffile==0.15.1 diff --git a/lambdas/access_counts/.python-version b/lambdas/access_counts/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/access_counts/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/indexer/.python-version b/lambdas/indexer/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/indexer/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/molecule/.python-version b/lambdas/molecule/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/molecule/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/pkgevents/.python-version b/lambdas/pkgevents/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/pkgevents/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/pkgpush/.python-version b/lambdas/pkgpush/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/pkgpush/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/pkgselect/.python-version b/lambdas/pkgselect/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/pkgselect/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/preview/.python-version b/lambdas/preview/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/preview/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/s3hash/.python-version b/lambdas/s3hash/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/s3hash/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/s3select/.python-version b/lambdas/s3select/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/s3select/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/shared/.python-version b/lambdas/shared/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/shared/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/status_reports/.python-version b/lambdas/status_reports/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/status_reports/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/tabular_preview/.python-version b/lambdas/tabular_preview/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/tabular_preview/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/lambdas/thumbnail/.python-version b/lambdas/thumbnail/.python-version new file mode 100644 index 00000000000..bd28b9c5c27 --- /dev/null +++ b/lambdas/thumbnail/.python-version @@ -0,0 +1 @@ +3.9 diff --git a/lambdas/transcode/.python-version b/lambdas/transcode/.python-version new file mode 100644 index 00000000000..cc1923a40b1 --- /dev/null +++ b/lambdas/transcode/.python-version @@ -0,0 +1 @@ +3.8