From b811dcc34ccbefdb091847ff28123ff98e0cfb86 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 15 Jul 2024 17:33:30 -0300 Subject: [PATCH] chore: move test-cli job to run separately from unit tests (#2712) --- .github/workflows/python_test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/python_test.yml b/.github/workflows/python_test.yml index 23544d8a0..5e06e0003 100644 --- a/.github/workflows/python_test.yml +++ b/.github/workflows/python_test.yml @@ -44,6 +44,28 @@ jobs: timeout-minutes: 12 run: | make unit_tests args="--splits ${{ matrix.splitCount }} --group ${{ matrix.group }}" + + test-cli: + name: Test CLI + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - "3.12" + - "3.11" + - "3.10" + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} + uses: "./.github/actions/poetry_caching" + with: + python-version: ${{ matrix.python-version }} + poetry-version: ${{ env.POETRY_VERSION }} + cache-key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }} + - name: Install Python dependencies + run: | + poetry env use ${{ matrix.python-version }} + poetry install - name: Test CLI run: | poetry run python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &