Skip to content

Commit 8e880d3

Browse files
authored
ci: install dependencies in the test environment when testing with lowest direct dependencies and Haystack main (#2418)
* CI: install deps on test environment * better hatch cmd * lower bound pins * more pins
1 parent 8c8e05d commit 8e880d3

46 files changed

Lines changed: 85 additions & 85 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/amazon_bedrock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ jobs:
8686
- name: Run unit tests with lowest direct dependencies
8787
run: |
8888
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
89-
hatch run uv pip install -r requirements_lowest_direct.txt
89+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
9090
hatch run test:unit
9191
9292
- name: Nightly - run unit tests with Haystack main branch
9393
if: github.event_name == 'schedule'
9494
run: |
9595
hatch env prune
96-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
96+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
9797
hatch run test:unit
9898
9999
- name: Send event to Datadog for nightly failures

.github/workflows/amazon_sagemaker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ jobs:
6363
- name: Run unit tests with lowest direct dependencies
6464
run: |
6565
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
66-
hatch run uv pip install -r requirements_lowest_direct.txt
66+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6767
hatch run test:unit
6868
6969
- name: Nightly - run unit tests with Haystack main branch
7070
if: github.event_name == 'schedule'
7171
run: |
7272
hatch env prune
73-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
73+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7474
hatch run test:unit
7575
7676
- name: Send event to Datadog for nightly failures

.github/workflows/anthropic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ jobs:
6060
- name: Run unit tests with lowest direct dependencies
6161
run: |
6262
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
63-
hatch run uv pip install -r requirements_lowest_direct.txt
63+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6464
hatch run test:unit
6565
6666
- name: Nightly - run unit tests with Haystack main branch
6767
if: github.event_name == 'schedule'
6868
run: |
6969
hatch env prune
70-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
70+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7171
hatch run test:unit
7272
7373
- name: Send event to Datadog for nightly failures

.github/workflows/astra.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ jobs:
6767
- name: Run unit tests with lowest direct dependencies
6868
run: |
6969
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
70-
hatch run uv pip install -r requirements_lowest_direct.txt
70+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
7171
hatch run test:unit
7272
7373
- name: Nightly - run unit tests with Haystack main branch
7474
if: github.event_name == 'schedule'
7575
run: |
7676
hatch env prune
77-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
77+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7878
hatch run test:unit
7979
8080
- name: Send event to Datadog for nightly failures

.github/workflows/azure_ai_search.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ jobs:
6161
- name: Run unit tests with lowest direct dependencies
6262
run: |
6363
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
64-
hatch run uv pip install -r requirements_lowest_direct.txt
64+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6565
hatch run test:unit
6666
6767
- name: Nightly - run unit tests with Haystack main branch
6868
if: github.event_name == 'schedule'
6969
run: |
7070
hatch env prune
71-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
71+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7272
hatch run test:unit
7373
7474
- name: Send event to Datadog for nightly failures

.github/workflows/chroma.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ jobs:
6767
- name: Run unit tests with lowest direct dependencies
6868
run: |
6969
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
70-
hatch run uv pip install -r requirements_lowest_direct.txt
70+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
7171
hatch run test:unit
7272
7373
- name: Nightly - run unit tests with Haystack main branch
7474
if: github.event_name == 'schedule'
7575
run: |
7676
hatch env prune
77-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
77+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7878
hatch run test:unit
7979
8080
- name: Send event to Datadog for nightly failures

.github/workflows/cohere.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ jobs:
6464
- name: Run unit tests with lowest direct dependencies
6565
run: |
6666
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
67-
hatch run uv pip install -r requirements_lowest_direct.txt
67+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6868
hatch run test:unit
6969
7070
- name: Nightly - run unit tests with Haystack main branch
7171
if: github.event_name == 'schedule'
7272
run: |
7373
hatch env prune
74-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
74+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7575
hatch run test:unit
7676
7777
- name: Send event to Datadog for nightly failures

.github/workflows/deepeval.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ jobs:
6363
- name: Run unit tests with lowest direct dependencies
6464
run: |
6565
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
66-
hatch run uv pip install -r requirements_lowest_direct.txt
66+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6767
hatch run test:unit
6868
6969
- name: Nightly - run unit tests with Haystack main branch
7070
if: github.event_name == 'schedule'
7171
run: |
7272
hatch env prune
73-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
73+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7474
hatch run test:unit
7575
7676
- name: Send event to Datadog for nightly failures

.github/workflows/elasticsearch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ jobs:
6161
- name: Run unit tests with lowest direct dependencies
6262
run: |
6363
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
64-
hatch run uv pip install -r requirements_lowest_direct.txt
64+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
6565
hatch run test:unit
6666
6767
- name: Nightly - run unit tests with Haystack main branch
6868
if: github.event_name == 'schedule'
6969
run: |
7070
hatch env prune
71-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
71+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7272
hatch run test:unit
7373
7474
- name: Send event to Datadog for nightly failures

.github/workflows/fastembed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ jobs:
4747
- name: Run unit tests with lowest direct dependencies
4848
run: |
4949
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
50-
hatch run uv pip install -r requirements_lowest_direct.txt
50+
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
5151
hatch run test:unit
5252
5353
- name: Nightly - run unit tests with Haystack main branch
5454
if: github.event_name == 'schedule'
5555
run: |
5656
hatch env prune
57-
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
57+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
5858
hatch run test:unit
5959
6060
- name: Send event to Datadog for nightly failures

0 commit comments

Comments
 (0)