feat: Use pyproject standardized dependency-groups (#6689)

* Use pyproject standardized dependency-groups

* fix: update Python version requirement to support up to 3.14

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Christophe Bornet 2025-02-20 21:19:45 +01:00 committed by GitHub
commit 0886bdad16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 141 additions and 146 deletions

View file

@ -34,7 +34,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Run Mypy
run: |
uv run mypy --namespace-packages -p "langflow"

View file

@ -31,7 +31,7 @@ jobs:
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Generate main nightly tag
id: generate_main_tag

View file

@ -30,7 +30,7 @@ jobs:
- name: "Install dependencies"
run: |
uv sync --frozen
uv sync
uv pip install -e .
- name: Run starter projects update

View file

@ -54,7 +54,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Run unit tests
uses: nick-fields/retry@v3
with:
@ -78,7 +78,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Run integration tests
run: make integration_tests_no_api_keys
- name: Minimize uv cache

View file

@ -65,7 +65,7 @@ jobs:
- name: Setup Environment
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Check Version
id: check-version
run: |
@ -129,7 +129,7 @@ jobs:
- name: Setup Environment
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
# If pre-release is true, we need to check if ["a", "b", "rc", "dev", "post"] is in the version string
# if the version string is incorrect, we need to exit the workflow

View file

@ -75,7 +75,7 @@ jobs:
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Verify Nightly Name and Version
id: verify
@ -152,7 +152,7 @@ jobs:
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Verify Nightly Name and Version
id: verify

View file

@ -26,7 +26,7 @@ jobs:
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev
run: uv sync
- name: Run unit tests
id: run_tests
continue-on-error: true

View file

@ -262,7 +262,7 @@ jobs:
uses: ./.github/actions/setup-uv
- name: Install Python Dependencies
run: uv sync --dev
run: uv sync
- name: Configure Environment Variables
run: |