chore: move test-cli job to run separately from unit tests (#2712)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-15 17:33:30 -03:00 committed by GitHub
commit b811dcc34c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 &