From c8476edcd1499e2888eec674117db416949b59f9 Mon Sep 17 00:00:00 2001 From: Steve Canny Date: Thu, 19 Oct 2023 11:06:19 -0700 Subject: [PATCH] fix: GitHub Actions interpreter not found problem --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/ingest-test-fixtures-update-pr.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 032575f0c7..5173cc2107 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -239,6 +239,10 @@ jobs: needs: [setup, lint] steps: - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - uses: actions/cache/restore@v3 id: virtualenv-cache with: @@ -246,10 +250,6 @@ jobs: .venv nltk_data key: unstructured-${{ runner.os }}-${{ matrix.python-version }}-${{ env.GHA_CACHE_KEY_VERSION }}-${{ hashFiles('requirements/*.txt') }} - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - name: Setup virtual environment (no cache hit) if: steps.virtualenv-cache.outputs.cache-hit != 'true' run: | diff --git a/.github/workflows/ingest-test-fixtures-update-pr.yml b/.github/workflows/ingest-test-fixtures-update-pr.yml index 47839c6de7..64e4b071a8 100644 --- a/.github/workflows/ingest-test-fixtures-update-pr.yml +++ b/.github/workflows/ingest-test-fixtures-update-pr.yml @@ -18,6 +18,10 @@ jobs: PYTHON_VERSION: "3.10" steps: - uses: actions/checkout@v3 + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} - uses: actions/cache@v3 id: virtualenv-cache with: @@ -25,10 +29,6 @@ jobs: .venv nltk_data key: unstructured-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ env.GHA_CACHE_KEY_VERSION }}-${{ hashFiles('requirements/*.txt') }} - - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v4 - with: - python-version: ${{ env.PYTHON_VERSION }} - name: Setup virtual environment (no cache hit) run: | python${{ env.PYTHON_VERSION }} -m venv .venv