mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 06:10:49 +08:00
chore: move test-cli job to run separately from unit tests (#2712)
This commit is contained in:
committed by
GitHub
parent
3edc782545
commit
b811dcc34c
22
.github/workflows/python_test.yml
vendored
22
.github/workflows/python_test.yml
vendored
@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user