Skip to content

Commit

Permalink
set UV_FROZEN
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Feb 4, 2025
1 parent c1ea951 commit d8faef3
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_compile_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
type: string
description: "Python version to use"

env:
UV_FROZEN: "true"

jobs:
build:
defaults:
Expand All @@ -30,7 +33,7 @@ jobs:

- name: Install integration dependencies
shell: bash
run: uv sync --group test --group test_integration --frozen
run: uv sync --group test --group test_integration

- name: Check integration tests compile
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
type: string
description: "Python version to use"

env:
UV_FROZEN: "true"

jobs:
build:
defaults:
Expand All @@ -28,7 +31,7 @@ jobs:

- name: Install dependencies
shell: bash
run: uv sync --group test --group test_integration --frozen
run: uv sync --group test --group test_integration

- name: Install deps outside pyproject
if: ${{ startsWith(inputs.working-directory, 'libs/community/') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
# This env var allows us to get inline annotations when ruff has complaints.
RUFF_OUTPUT_FORMAT: github

UV_FROZEN: "true"

jobs:
build:
name: "make lint #${{ inputs.python-version }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:

env:
PYTHON_VERSION: "3.11"
UV_FROZEN: "true"

jobs:
build:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
type: string
description: "Python version to use"

env:
UV_FROZEN: "true"

jobs:
build:
defaults:
Expand All @@ -30,7 +33,7 @@ jobs:
python-version: ${{ inputs.python-version }}
- name: Install dependencies
shell: bash
run: uv sync --group test --dev --frozen
run: uv sync --group test --dev

- name: Run core tests
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/_test_pydantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
type: string
description: "Pydantic version to test."

env:
UV_FROZEN: "true"

jobs:
build:
defaults:
Expand All @@ -35,7 +38,7 @@ jobs:

- name: Install dependencies
shell: bash
run: uv sync --group test --frozen
run: uv sync --group test

- name: Overwrite pydantic version
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/_test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

env:
PYTHON_VERSION: "3.11"
UV_FROZEN: "true"

jobs:
build:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/check_diffs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
UV_FROZEN: "true"

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,7 +136,7 @@ jobs:
shell: bash
run: |
echo "Running extended tests, installing dependencies with uv..."
uv sync --group test --frozen
uv sync --group test
uv pip install -r extended_testing_deps.txt
- name: Run extended tests
Expand Down
3 changes: 3 additions & 0 deletions libs/core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ all: help
# Define a variable for the test file path.
TEST_FILE ?= tests/unit_tests/

.EXPORT_ALL_VARIABLES:
UV_FROZEN = true

test tests:
env \
-u LANGCHAIN_TRACING_V2 \
Expand Down
3 changes: 3 additions & 0 deletions libs/langchain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ all: help
# Define a variable for the test file path.
TEST_FILE ?= tests/unit_tests/

.EXPORT_ALL_VARIABLES:
UV_FROZEN = true

# Run unit tests and generate a coverage report.
coverage:
uv run --group test pytest --cov \
Expand Down

0 comments on commit d8faef3

Please sign in to comment.