Skip to content

Commit 50a62ab

Browse files
committed
test pep604 haystack branch
1 parent 4bebb99 commit 50a62ab

42 files changed

Lines changed: 929 additions & 971 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/aimlapi.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,34 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53-
- name: Lint
54-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
55-
run: hatch run fmt-check && hatch run test:types
53+
# - name: Lint
54+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
55+
# run: hatch run fmt-check && hatch run test:types
5656

57-
- name: Generate docs
58-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
59-
run: hatch run docs
57+
# - name: Generate docs
58+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
59+
# run: hatch run docs
6060

61-
- name: Run tests
62-
run: hatch run test:cov-retry
61+
# - name: Run tests
62+
# run: hatch run test: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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
68-
hatch run test:unit
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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
68+
# hatch run test:unit
6969

7070
# Since this integration inherits from OpenAIChatGenerator, we run ALL tests with Haystack main branch to catch regressions
7171
- name: Nightly - run tests with Haystack main branch
72-
if: github.event_name == 'schedule'
7372
run: |
7473
hatch env prune
75-
hatch -e test env 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@pep604
7675
hatch run test:cov-retry
7776
78-
- name: Send event to Datadog for nightly failures
79-
if: failure() && github.event_name == 'schedule'
80-
uses: ./.github/actions/send_failure
81-
with:
82-
title: |
83-
Core integrations nightly tests failure: ${{ github.workflow }}
84-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
77+
# - name: Send event to Datadog for nightly failures
78+
# if: failure() && github.event_name == 'schedule'
79+
# uses: ./.github/actions/send_failure
80+
# with:
81+
# title: |
82+
# Core integrations nightly tests failure: ${{ github.workflow }}
83+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/amazon_bedrock.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ jobs:
5959
- name: Install Hatch
6060
run: pip install --upgrade hatch
6161

62-
- name: Lint
63-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
64-
run: hatch run fmt-check && hatch run test:types
62+
# - name: Lint
63+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
64+
# run: hatch run fmt-check && hatch run test:types
6565

66-
- name: Generate docs
67-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
68-
run: hatch run docs
66+
# - name: Generate docs
67+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
68+
# run: hatch run docs
6969

70-
- name: Run unit tests
71-
run: hatch run test:unit
70+
# - name: Run unit tests
71+
# run: hatch run test:unit
7272

7373
# Do not authenticate on PRs from forks and on PRs created by dependabot
7474
- name: AWS authentication
@@ -79,27 +79,26 @@ jobs:
7979
aws-region: ${{ env.AWS_REGION }}
8080
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
8181

82-
- name: Run integration tests
83-
if: success() && steps.aws-auth.outcome == 'success'
84-
run: hatch run test:cov-retry -m "integration"
82+
# - name: Run integration tests
83+
# if: success() && steps.aws-auth.outcome == 'success'
84+
# run: hatch run test:cov-retry -m "integration"
8585

86-
- name: Run unit tests with lowest direct dependencies
87-
run: |
88-
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
89-
hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
90-
hatch run test:unit
86+
# - name: Run unit tests with lowest direct dependencies
87+
# run: |
88+
# hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
89+
# hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt
90+
# hatch run test:unit
9191

9292
- name: Nightly - run unit tests with Haystack main branch
93-
if: github.event_name == 'schedule'
9493
run: |
9594
hatch env prune
96-
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
97-
hatch run test:unit
98-
99-
- name: Send event to Datadog for nightly failures
100-
if: failure() && github.event_name == 'schedule'
101-
uses: ./.github/actions/send_failure
102-
with:
103-
title: |
104-
Core integrations nightly tests failure: ${{ github.workflow }}
105-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
95+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@pep604
96+
hatch run test:cov-retry
97+
98+
# - name: Send event to Datadog for nightly failures
99+
# if: failure() && github.event_name == 'schedule'
100+
# uses: ./.github/actions/send_failure
101+
# with:
102+
# title: |
103+
# Core integrations nightly tests failure: ${{ github.workflow }}
104+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/amazon_sagemaker.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,34 +49,33 @@ jobs:
4949
- name: Install Hatch
5050
run: pip install --upgrade hatch
5151

52-
- name: Lint
53-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
54-
run: hatch run fmt-check && hatch run test:types
52+
# - name: Lint
53+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
54+
# run: hatch run fmt-check && hatch run test:types
5555

56-
- name: Generate docs
57-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
58-
run: hatch run docs
56+
# - name: Generate docs
57+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
58+
# run: hatch run docs
5959

60-
- name: Run tests
61-
run: hatch run test:cov-retry
60+
# - name: Run tests
61+
# run: hatch run test: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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
67-
hatch run test:unit
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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
67+
# hatch run test:unit
6868

6969
- name: Nightly - run unit tests with Haystack main branch
70-
if: github.event_name == 'schedule'
7170
run: |
7271
hatch env prune
73-
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
74-
hatch run test:unit
72+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@pep604
73+
hatch run test:cov-retry
7574
76-
- name: Send event to Datadog for nightly failures
77-
if: failure() && github.event_name == 'schedule'
78-
uses: ./.github/actions/send_failure
79-
with:
80-
title: |
81-
Core integrations nightly tests failure: ${{ github.workflow }}
82-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
75+
# - name: Send event to Datadog for nightly failures
76+
# if: failure() && github.event_name == 'schedule'
77+
# uses: ./.github/actions/send_failure
78+
# with:
79+
# title: |
80+
# Core integrations nightly tests failure: ${{ github.workflow }}
81+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/anthropic.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,34 +50,33 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53-
- name: Lint
54-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
55-
run: hatch run fmt-check && hatch run test:types
53+
# - name: Lint
54+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
55+
# run: hatch run fmt-check && hatch run test:types
5656

57-
- name: Generate docs
58-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
59-
run: hatch run docs
57+
# - name: Generate docs
58+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
59+
# run: hatch run docs
6060

61-
- name: Run tests
62-
run: hatch run test:cov-retry
61+
# - name: Run tests
62+
# run: hatch run test: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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
68-
hatch run test:unit
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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
68+
# hatch run test:unit
6969

7070
- name: Nightly - run unit tests with Haystack main branch
71-
if: github.event_name == 'schedule'
7271
run: |
7372
hatch env prune
74-
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run test:unit
73+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@pep604
74+
hatch run test:cov-retry
7675
77-
- name: Send event to Datadog for nightly failures
78-
if: failure() && github.event_name == 'schedule'
79-
uses: ./.github/actions/send_failure
80-
with:
81-
title: |
82-
Core integrations nightly tests failure: ${{ github.workflow }}
83-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
76+
# - name: Send event to Datadog for nightly failures
77+
# if: failure() && github.event_name == 'schedule'
78+
# uses: ./.github/actions/send_failure
79+
# with:
80+
# title: |
81+
# Core integrations nightly tests failure: ${{ github.workflow }}
82+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/astra.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,37 +50,36 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53-
- name: Lint
54-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
55-
run: hatch run fmt-check && hatch run test:types
53+
# - name: Lint
54+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
55+
# run: hatch run fmt-check && hatch run test:types
5656

57-
- name: Generate docs
58-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
59-
run: hatch run docs
57+
# - name: Generate docs
58+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
59+
# run: hatch run docs
6060

61-
- name: Run tests
62-
env:
63-
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }}
64-
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
65-
run: hatch run test:cov-retry
61+
# - name: Run tests
62+
# env:
63+
# ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }}
64+
# ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
65+
# run: hatch run test: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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
71-
hatch run test:unit
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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
71+
# hatch run test:unit
7272

7373
- name: Nightly - run unit tests with Haystack main branch
74-
if: github.event_name == 'schedule'
7574
run: |
7675
hatch env prune
77-
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
78-
hatch run test:unit
76+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@pep604
77+
hatch run test:cov-retry
7978
80-
- name: Send event to Datadog for nightly failures
81-
if: failure() && github.event_name == 'schedule'
82-
uses: ./.github/actions/send_failure
83-
with:
84-
title: |
85-
Core integrations nightly tests failure: ${{ github.workflow }}
86-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
79+
# - name: Send event to Datadog for nightly failures
80+
# if: failure() && github.event_name == 'schedule'
81+
# uses: ./.github/actions/send_failure
82+
# with:
83+
# title: |
84+
# Core integrations nightly tests failure: ${{ github.workflow }}
85+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

.github/workflows/azure_ai_search.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,34 +47,33 @@ jobs:
4747
- name: Install Hatch
4848
run: pip install --upgrade hatch
4949

50-
- name: Lint
51-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
52-
run: hatch run fmt-check && hatch run test:types
50+
# - name: Lint
51+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
52+
# run: hatch run fmt-check && hatch run test:types
5353

54-
- name: Generate docs
55-
if: matrix.python-version == '3.10' && runner.os == 'Linux'
56-
run: hatch run docs
54+
# - name: Generate docs
55+
# if: matrix.python-version == '3.10' && runner.os == 'Linux'
56+
# run: hatch run docs
5757

58-
- name: Run tests
59-
run: hatch run test:cov-retry
58+
# - name: Run tests
59+
# run: hatch run test: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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
65-
hatch run test:unit
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 -e test env run -- uv pip install -r requirements_lowest_direct.txt
65+
# hatch run test:unit
6666

6767
- name: Nightly - run unit tests with Haystack main branch
68-
if: github.event_name == 'schedule'
6968
run: |
7069
hatch env prune
71-
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
72-
hatch run test:unit
70+
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@pep604
71+
hatch run test:cov-retry
7372
74-
- name: Send event to Datadog for nightly failures
75-
if: failure() && github.event_name == 'schedule'
76-
uses: ./.github/actions/send_failure
77-
with:
78-
title: |
79-
Core integrations nightly tests failure: ${{ github.workflow }}
80-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
73+
# - name: Send event to Datadog for nightly failures
74+
# if: failure() && github.event_name == 'schedule'
75+
# uses: ./.github/actions/send_failure
76+
# with:
77+
# title: |
78+
# Core integrations nightly tests failure: ${{ github.workflow }}
79+
# api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

0 commit comments

Comments
 (0)