From edfd9f0c243a38cf95720cd32e5aba8a79643032 Mon Sep 17 00:00:00 2001 From: Emily Voss Date: Fri, 13 Jun 2025 20:43:43 -0700 Subject: [PATCH 1/4] Use ubuntu-latest --- .github/workflows/docker-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6d54bbecc..5f0f38c6a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -48,7 +48,7 @@ jobs: #arch: ["arm64", "amd64"] # NOTE(luke): temporary disable arm64 since its failing the smoke test arch: ["amd64"] - runs-on: ubuntu-latest-m + runs-on: ubuntu-latest needs: [setup, set-short-sha] env: SHORT_SHA: ${{ needs.set-short-sha.outputs.short_sha }} @@ -103,7 +103,7 @@ jobs: # write to the build repository to cache for the publish-images job docker push $DOCKER_BUILD_REPOSITORY:${{ matrix.arch }}-$SHORT_SHA publish-images: - runs-on: ubuntu-latest-m + runs-on: ubuntu-latest needs: [setup, set-short-sha, build-images] env: SHORT_SHA: ${{ needs.set-short-sha.outputs.short_sha }} From 8208b4dbfe86c6f70c5abaa2117660ecc662eb0d Mon Sep 17 00:00:00 2001 From: Emily Voss Date: Fri, 13 Jun 2025 20:51:35 -0700 Subject: [PATCH 2/4] Downgrade to python 3.11 --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 5f0f38c6a..e8314faa8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,7 +11,7 @@ env: PACKAGE: "unstructured-api" PIPELINE_FAMILY: "general" PIP_VERSION: "25.1.1" - PYTHON_VERSION: "3.12" + PYTHON_VERSION: "3.11" jobs: setup: From c6d153d7878000ca36eb2832ab72f41a584e684c Mon Sep 17 00:00:00 2001 From: Emily Voss Date: Fri, 13 Jun 2025 20:55:27 -0700 Subject: [PATCH 3/4] CI 3.11 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73a659e1f..0b7013df0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [ main ] env: - PYTHON_VERSION: "3.12" + PYTHON_VERSION: "3.11" PIPELINE_FAMILY: "general" jobs: From 1b5701ab372fea4ea1bf9a61e8cf72aefc6cfa09 Mon Sep 17 00:00:00 2001 From: Emily Voss Date: Fri, 13 Jun 2025 21:05:29 -0700 Subject: [PATCH 4/4] Set up python for tests --- .github/workflows/ci.yml | 16 +++++++++++++--- .github/workflows/docker-publish.yml | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b7013df0..f8931b2f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [ main ] env: - PYTHON_VERSION: "3.11" + PYTHON_VERSION: "3.12" PIPELINE_FAMILY: "general" jobs: @@ -56,7 +56,7 @@ jobs: uses: ludeeus/action-shellcheck@master test: - runs-on: ubuntu-latest-m + runs-on: ubuntu-latest needs: [setup, lint] steps: - uses: actions/checkout@v4 @@ -66,6 +66,11 @@ jobs: path: | .venv key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/test.txt') }} + + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} - name: Run core tests run: | python${{ env.PYTHON_VERSION }} -m venv .venv @@ -98,16 +103,21 @@ jobs: # TODO - figure out best practice for caching docker images # (Using the virtualenv to get pytest) test_dockerfile: - runs-on: ubuntu-latest-m + runs-on: ubuntu-latest needs: [setup, lint] steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 id: virtualenv-cache with: + python-version: ${{ env.PYTHON_VERSION }} path: | .venv key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/test.txt') }} + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} - name: Test Dockerfile run: | python${{ env.PYTHON_VERSION }} -m venv .venv diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e8314faa8..5f0f38c6a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -11,7 +11,7 @@ env: PACKAGE: "unstructured-api" PIPELINE_FAMILY: "general" PIP_VERSION: "25.1.1" - PYTHON_VERSION: "3.11" + PYTHON_VERSION: "3.12" jobs: setup: