chore: move test-cli job to run separately from unit tests (#2712)
This commit is contained in:
parent
3edc782545
commit
b811dcc34c
1 changed files with 22 additions and 0 deletions
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 &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue