From b8ce9173bfb19a678f4a809b3d16e058cc808cb9 Mon Sep 17 00:00:00 2001 From: Cosmin Poieana Date: Tue, 10 Oct 2023 14:51:33 +0300 Subject: [PATCH] Fix workflows --- .github/workflows/assistant.yaml | 16 ++++++---------- .github/workflows/aws.yaml | 16 ++++++---------- .github/workflows/dialogs.yaml | 16 ++++++---------- .github/workflows/docs.yaml | 8 +++----- .github/workflows/google.yaml | 16 ++++++---------- .github/workflows/openai.yaml | 16 ++++++---------- .github/workflows/pdf.yaml | 16 ++++++---------- .github/workflows/recognition.yaml | 16 ++++++---------- .github/workflows/windows.yaml | 16 ++++++---------- 9 files changed, 51 insertions(+), 85 deletions(-) diff --git a/.github/workflows/assistant.yaml b/.github/workflows/assistant.yaml index 2fff0d1120..50a5eac41e 100644 --- a/.github/workflows/assistant.yaml +++ b/.github/workflows/assistant.yaml @@ -81,12 +81,10 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -116,12 +114,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/aws.yaml b/.github/workflows/aws.yaml index 56d253c646..dc6e830506 100644 --- a/.github/workflows/aws.yaml +++ b/.github/workflows/aws.yaml @@ -76,10 +76,8 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -91,7 +89,7 @@ jobs: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -115,12 +113,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/dialogs.yaml b/.github/workflows/dialogs.yaml index 9e4edf297a..d62278421d 100644 --- a/.github/workflows/dialogs.yaml +++ b/.github/workflows/dialogs.yaml @@ -81,12 +81,10 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -115,12 +113,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index a69174b897..02726cb169 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -28,8 +28,8 @@ jobs: python-version: "3.9" - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -40,10 +40,8 @@ jobs: with: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build HTML documentation diff --git a/.github/workflows/google.yaml b/.github/workflows/google.yaml index b9b3f84ece..ef9cbff76e 100644 --- a/.github/workflows/google.yaml +++ b/.github/workflows/google.yaml @@ -78,10 +78,8 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -93,7 +91,7 @@ jobs: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -117,12 +115,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/openai.yaml b/.github/workflows/openai.yaml index 28fcf7755b..d24b462d3f 100644 --- a/.github/workflows/openai.yaml +++ b/.github/workflows/openai.yaml @@ -78,8 +78,8 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -90,10 +90,8 @@ jobs: with: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -117,12 +115,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/pdf.yaml b/.github/workflows/pdf.yaml index 3301629215..ebb6022b2a 100644 --- a/.github/workflows/pdf.yaml +++ b/.github/workflows/pdf.yaml @@ -78,8 +78,8 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -90,10 +90,8 @@ jobs: with: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -117,12 +115,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/recognition.yaml b/.github/workflows/recognition.yaml index 82729d37dd..8dd4a99863 100644 --- a/.github/workflows/recognition.yaml +++ b/.github/workflows/recognition.yaml @@ -78,8 +78,8 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Get python version id: full-python-version shell: bash @@ -90,10 +90,8 @@ jobs: with: path: .venv key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('poetry.lock') }} - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -117,12 +115,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 66c619bd47..bc68ee7d79 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -79,12 +79,10 @@ jobs: python-version: ${{ matrix.python }} - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Lint @@ -109,12 +107,10 @@ jobs: python-version: '3.9' - name: Upgrade pip run: python -m pip install --upgrade pip - - name: Install poetry - run: pip install poetry - - name: Install invoke - run: pip install -U "invoke>=1.6.0,<2.0.0" + - name: Install invocation prerequisites + run: pip install -Ur ../../invocations/requirements.txt - name: Install invocation package - run: invoke install-invocations + run: invoke install-invocations || invoke self.install-invocations - name: Install dependencies run: invoke install - name: Build and publish package