Skip to content

Commit 435675b

Browse files
ci: check lowest direct dependencies (#1788)
* ci: check lowest direct dependencies * try single quotes * debug * debugging * try chroma * no bedrock * retry * explicit option * don't run tests * debug 1 * try output file * more * no deepeval --------- Co-authored-by: David S. Batista <[email protected]>
1 parent 8ed6836 commit 435675b

15 files changed

+99
-1
lines changed

.github/workflows/amazon_bedrock.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,16 @@ jobs:
7878
if: success() && steps.aws-auth.outcome == 'success'
7979
run: hatch run cov-retry -m "integration"
8080

81+
- name: Run unit tests with lowest direct dependencies
82+
run: |
83+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
84+
hatch run uv pip install -r requirements_lowest_direct.txt
85+
hatch run test -m "not integration"
86+
8187
- name: Nightly - run unit tests with Haystack main branch
8288
if: github.event_name == 'schedule'
8389
run: |
90+
hatch env prune
8491
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
8592
hatch run cov-retry -m "not integration"
8693

.github/workflows/amazon_sagemaker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,16 @@ jobs:
6060
- name: Run tests
6161
run: hatch run cov-retry
6262

63+
- name: Run unit tests with lowest direct dependencies
64+
run: |
65+
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
67+
hatch run test -m "not integration"
68+
6369
- name: Nightly - run unit tests with Haystack main branch
6470
if: github.event_name == 'schedule'
6571
run: |
72+
hatch env prune
6673
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6774
hatch run cov-retry -m "not integration"
6875

.github/workflows/astra.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ jobs:
6464
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
6565
run: hatch run cov-retry
6666

67+
- name: Run unit tests with lowest direct dependencies
68+
run: |
69+
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
71+
hatch run test -m "not integration"
72+
6773
- name: Nightly - run unit tests with Haystack main branch
6874
if: github.event_name == 'schedule'
6975
run: |
76+
hatch env prune
7077
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
7178
hatch run cov-retry -m "not integration"
7279

.github/workflows/azure_ai_search.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,16 @@ jobs:
5858
- name: Run tests
5959
run: hatch run cov-retry
6060

61+
- name: Run unit tests with lowest direct dependencies
62+
run: |
63+
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
65+
hatch run test -m "not integration"
66+
6167
- name: Nightly - run unit tests with Haystack main branch
6268
if: github.event_name == 'schedule'
6369
run: |
70+
hatch env prune
6471
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6572
hatch run cov-retry -m "not integration"
6673

.github/workflows/chroma.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ jobs:
6464
- name: Run tests
6565
run: hatch run cov-retry
6666

67+
- name: Run unit tests with lowest direct dependencies
68+
run: |
69+
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
71+
hatch run test -m "not integration"
72+
6773
- name: Nightly - run unit tests with Haystack main branch
6874
if: github.event_name == 'schedule'
6975
run: |
76+
hatch env prune
7077
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
7178
hatch run cov-retry -m "not integration"
7279

.github/workflows/deepeval.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ jobs:
7373
with:
7474
title: |
7575
Core integrations nightly tests failure: ${{ github.workflow }}
76-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
76+
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/fastembed.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,16 @@ jobs:
4545
- name: Run tests
4646
run: hatch run cov-retry
4747

48+
- name: Run unit tests with lowest direct dependencies
49+
run: |
50+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
51+
hatch run uv pip install -r requirements_lowest_direct.txt
52+
hatch run test -m "not integration"
53+
4854
- name: Nightly - run unit tests with Haystack main branch
4955
if: github.event_name == 'schedule'
5056
run: |
57+
hatch env prune
5158
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
5259
hatch run cov-retry -m "not integration"
5360

.github/workflows/llama_cpp.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
- name: Run tests
6262
run: hatch run cov-retry
6363

64+
- name: Run unit tests with lowest direct dependencies
65+
run: |
66+
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
68+
hatch run test -m "not integration"
69+
6470
- name: Nightly - run unit tests with Haystack main branch
6571
if: github.event_name == 'schedule'
6672
run: |
73+
hatch env prune
6774
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6875
hatch run cov-retry -m "not integration"
6976

.github/workflows/meta_llama.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
- name: Run tests
6262
run: hatch run cov-retry
6363

64+
- name: Run unit tests with lowest direct dependencies
65+
run: |
66+
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
68+
hatch run test -m "not integration"
69+
6470
- name: Nightly - run unit tests with Haystack main branch
6571
if: github.event_name == 'schedule'
6672
run: |
73+
hatch env prune
6774
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6875
hatch run cov-retry -m "not integration"
6976

.github/workflows/mistral.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
- name: Run tests
6262
run: hatch run cov-retry
6363

64+
- name: Run unit tests with lowest direct dependencies
65+
run: |
66+
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
68+
hatch run test -m "not integration"
69+
6470
- name: Nightly - run unit tests with Haystack main branch
6571
if: github.event_name == 'schedule'
6672
run: |
73+
hatch env prune
6774
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6875
hatch run cov-retry -m "not integration"
6976

.github/workflows/ollama.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,16 @@ jobs:
9595
- name: Run tests
9696
run: hatch run cov-retry
9797

98+
- name: Run unit tests with lowest direct dependencies
99+
run: |
100+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
101+
hatch run uv pip install -r requirements_lowest_direct.txt
102+
hatch run test -m "not integration"
103+
98104
- name: Nightly - run unit tests with Haystack main branch
99105
if: github.event_name == 'schedule'
100106
run: |
107+
hatch env prune
101108
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
102109
hatch run cov-retry -m "not integration"
103110

.github/workflows/openrouter.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
- name: Run tests
6262
run: hatch run cov-retry
6363

64+
- name: Run unit tests with lowest direct dependencies
65+
run: |
66+
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
68+
hatch run test -m "not integration"
69+
6470
- name: Nightly - run unit tests with Haystack main branch
6571
if: github.event_name == 'schedule'
6672
run: |
73+
hatch env prune
6774
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6875
hatch run cov-retry -m "not integration"
6976

.github/workflows/stackit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,16 @@ jobs:
6161
- name: Run tests
6262
run: hatch run cov-retry
6363

64+
- name: Run unit tests with lowest direct dependencies
65+
run: |
66+
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
68+
hatch run test -m "not integration"
69+
6470
- name: Nightly - run unit tests with Haystack main branch
6571
if: github.event_name == 'schedule'
6672
run: |
73+
hatch env prune
6774
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6875
hatch run cov-retry -m "not integration"
6976

.github/workflows/weaviate.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,16 @@ jobs:
5858
- name: Run tests
5959
run: hatch run cov-retry
6060

61+
- name: Run unit tests with lowest direct dependencies
62+
run: |
63+
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
65+
hatch run test -m "not integration"
66+
6167
- name: Nightly - run unit tests with Haystack main branch
6268
if: github.event_name == 'schedule'
6369
run: |
70+
hatch env prune
6471
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6572
hatch run cov-retry -m "not integration"
6673

.github/workflows/weights_and_biases_weave.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,16 @@ jobs:
5757
- name: Run tests
5858
run: hatch run cov-retry
5959

60+
- name: Run unit tests with lowest direct dependencies
61+
run: |
62+
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
64+
hatch run test -m "not integration"
65+
6066
- name: Nightly - run unit tests with Haystack main branch
6167
if: github.event_name == 'schedule'
6268
run: |
69+
hatch env prune
6370
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6471
hatch run cov-retry -m "not integration"
6572

0 commit comments

Comments
 (0)