Skip to content

Commit 6c4670b

Browse files
committed
more
1 parent 9fad719 commit 6c4670b

46 files changed

Lines changed: 332 additions & 238 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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,18 @@ jobs:
5454
- name: Install Hatch
5555
run: pip install --upgrade hatch
5656

57+
# TODO: Once this integration is properly typed, use hatch run test:types
58+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5759
- name: Lint
5860
if: matrix.python-version == '3.9' && runner.os == 'Linux'
59-
run: hatch run lint:all
61+
run: hatch run fmt-check && hatch run lint:typing
6062

6163
- name: Generate docs
6264
if: matrix.python-version == '3.9' && runner.os == 'Linux'
6365
run: hatch run docs
6466

6567
- name: Run unit tests
66-
run: hatch run cov-retry -m "not integration"
68+
run: hatch run test:unit
6769

6870
# Do not authenticate on pull requests from forks
6971
- name: AWS authentication
@@ -76,20 +78,20 @@ jobs:
7678

7779
- name: Run integration tests
7880
if: success() && steps.aws-auth.outcome == 'success'
79-
run: hatch run cov-retry -m "integration"
81+
run: hatch run test:cov-retry -m "integration"
8082

8183
- name: Run unit tests with lowest direct dependencies
8284
run: |
8385
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
8486
hatch run uv pip install -r requirements_lowest_direct.txt
85-
hatch run test -m "not integration"
87+
hatch run test:unit
8688
8789
- name: Nightly - run unit tests with Haystack main branch
8890
if: github.event_name == 'schedule'
8991
run: |
9092
hatch env prune
9193
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
92-
hatch run cov-retry -m "not integration"
94+
hatch run test:unit
9395
9496
- name: Send event to Datadog for nightly failures
9597
if: failure() && github.event_name == 'schedule'

.github/workflows/amazon_sagemaker.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,31 @@ jobs:
4949
- name: Install Hatch
5050
run: pip install --upgrade hatch
5151

52+
# TODO: Once this integration is properly typed, use hatch run test:types
53+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5254
- name: Lint
5355
if: matrix.python-version == '3.9' && runner.os == 'Linux'
54-
run: hatch run lint:all
56+
run: hatch run fmt-check && hatch run lint:typing
5557

5658
- name: Generate docs
5759
if: matrix.python-version == '3.9' && runner.os == 'Linux'
5860
run: hatch run docs
5961

6062
- name: Run tests
61-
run: hatch run cov-retry
63+
run: hatch run test:cov-retry
6264

6365
- name: Run unit tests with lowest direct dependencies
6466
run: |
6567
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6668
hatch run uv pip install -r requirements_lowest_direct.txt
67-
hatch run test -m "not integration"
69+
hatch run test:unit
6870
6971
- name: Nightly - run unit tests with Haystack main branch
7072
if: github.event_name == 'schedule'
7173
run: |
7274
hatch env prune
7375
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
74-
hatch run cov-retry -m "not integration"
76+
hatch run test:unit
7577
7678
- name: Send event to Datadog for nightly failures
7779
if: failure() && github.event_name == 'schedule'

.github/workflows/astra.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53+
# TODO: Once this integration is properly typed, use hatch run test:types
54+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5355
- name: Lint
5456
if: matrix.python-version == '3.9' && runner.os == 'Linux'
55-
run: hatch run lint:all
57+
run: hatch run fmt-check && hatch run lint:typing
5658

5759
- name: Generate docs
5860
if: matrix.python-version == '3.9' && runner.os == 'Linux'
@@ -62,20 +64,20 @@ jobs:
6264
env:
6365
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }}
6466
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
65-
run: hatch run cov-retry
67+
run: hatch run test:cov-retry
6668

6769
- name: Run unit tests with lowest direct dependencies
6870
run: |
6971
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
7072
hatch run uv pip install -r requirements_lowest_direct.txt
71-
hatch run test -m "not integration"
73+
hatch run test:unit
7274
7375
- name: Nightly - run unit tests with Haystack main branch
7476
if: github.event_name == 'schedule'
7577
run: |
7678
hatch env prune
7779
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
78-
hatch run cov-retry -m "not integration"
80+
hatch run test:unit
7981
8082
- name: Send event to Datadog for nightly failures
8183
if: failure() && github.event_name == 'schedule'

.github/workflows/azure_ai_search.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,31 @@ jobs:
4747
- name: Install Hatch
4848
run: pip install --upgrade hatch
4949

50+
# TODO: Once this integration is properly typed, use hatch run test:types
51+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5052
- name: Lint
51-
if: matrix.python-version == '3.9'
52-
run: hatch run lint:all
53+
if: matrix.python-version == '3.9' && runner.os == 'Linux'
54+
run: hatch run fmt-check && hatch run lint:typing
5355

5456
- name: Generate docs
5557
if: matrix.python-version == '3.9' && runner.os == 'Linux'
5658
run: hatch run docs
5759

5860
- name: Run tests
59-
run: hatch run cov-retry
61+
run: hatch run test:cov-retry
6062

6163
- name: Run unit tests with lowest direct dependencies
6264
run: |
6365
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6466
hatch run uv pip install -r requirements_lowest_direct.txt
65-
hatch run test -m "not integration"
67+
hatch run test:unit
6668
6769
- name: Nightly - run unit tests with Haystack main branch
6870
if: github.event_name == 'schedule'
6971
run: |
7072
hatch env prune
7173
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
72-
hatch run cov-retry -m "not integration"
74+
hatch run test:unit
7375
7476
- name: Send event to Datadog for nightly failures
7577
if: failure() && github.event_name == 'schedule'

.github/workflows/chroma.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
- name: Install Hatch
5050
run: pip install --upgrade hatch
5151

52+
# TODO: Once this integration is properly typed, use hatch run test:types
53+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5254
- name: Lint
5355
if: matrix.python-version == '3.9' && runner.os == 'Linux'
54-
run: hatch run lint:all
56+
run: hatch run fmt-check && hatch run lint:typing
5557

5658
- name: Generate docs
5759
if: matrix.python-version == '3.9' && runner.os == 'Linux'
@@ -62,20 +64,20 @@ jobs:
6264
run: hatch run chroma run &
6365

6466
- name: Run tests
65-
run: hatch run cov-retry
67+
run: hatch run test:cov-retry
6668

6769
- name: Run unit tests with lowest direct dependencies
6870
run: |
6971
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
7072
hatch run uv pip install -r requirements_lowest_direct.txt
71-
hatch run test -m "not integration"
73+
hatch run test:unit
7274
7375
- name: Nightly - run unit tests with Haystack main branch
7476
if: github.event_name == 'schedule'
7577
run: |
7678
hatch env prune
7779
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
78-
hatch run cov-retry -m "not integration"
80+
hatch run test:unit
7981
8082
- name: Send event to Datadog for nightly failures
8183
if: failure() && github.event_name == 'schedule'

.github/workflows/cohere.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,31 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53+
# TODO: Once this integration is properly typed, use hatch run test:types
54+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5355
- name: Lint
5456
if: matrix.python-version == '3.9' && runner.os == 'Linux'
55-
run: hatch run lint:all
57+
run: hatch run fmt-check && hatch run lint:typing
5658

5759
- name: Generate docs
5860
if: matrix.python-version == '3.9' && runner.os == 'Linux'
5961
run: hatch run docs
6062

6163
- name: Run tests
62-
run: hatch run cov-retry
64+
run: hatch run test:cov-retry
6365

6466
- name: Run unit tests with lowest direct dependencies
6567
run: |
6668
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6769
hatch run uv pip install -r requirements_lowest_direct.txt
68-
hatch run test -m "not integration"
70+
hatch run test:unit
6971
7072
- name: Nightly - run unit tests with Haystack main branch
7173
if: github.event_name == 'schedule'
7274
run: |
7375
hatch env prune
7476
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run cov-retry -m "not integration"
77+
hatch run test:unit
7678
7779
- name: Send event to Datadog for nightly failures
7880
if: failure() && github.event_name == 'schedule'

.github/workflows/deepeval.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,31 @@ jobs:
5050
- name: Install Hatch
5151
run: pip install --upgrade hatch
5252

53+
# TODO: Once this integration is properly typed, use hatch run test:types
54+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5355
- name: Lint
5456
if: matrix.python-version == '3.9' && runner.os == 'Linux'
55-
run: hatch run lint:all
57+
run: hatch run fmt-check && hatch run lint:typing
5658

5759
- name: Generate docs
5860
if: matrix.python-version == '3.9' && runner.os == 'Linux'
5961
run: hatch run docs
6062

6163
- name: Run tests
62-
run: hatch run cov-retry
64+
run: hatch run test:cov-retry
6365

6466
- name: Run unit tests with lowest direct dependencies
6567
run: |
6668
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6769
hatch run uv pip install -r requirements_lowest_direct.txt
68-
hatch run test -m "not integration"
70+
hatch run test:unit
6971
7072
- name: Nightly - run unit tests with Haystack main branch
7173
if: github.event_name == 'schedule'
7274
run: |
7375
hatch env prune
7476
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run cov-retry -m "not integration"
77+
hatch run test:unit
7678
7779
- name: Send event to Datadog for nightly failures
7880
if: failure() && github.event_name == 'schedule'

.github/workflows/elasticsearch.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ jobs:
4444
- name: Install Hatch
4545
run: pip install --upgrade hatch
4646

47+
# TODO: Once this integration is properly typed, use hatch run test:types
48+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
4749
- name: Lint
48-
if: matrix.python-version == '3.9'
49-
run: hatch run lint:all
50+
if: matrix.python-version == '3.9' && runner.os == 'Linux'
51+
run: hatch run fmt-check && hatch run lint:typing
5052

5153
- name: Run ElasticSearch container
5254
run: docker compose up -d
@@ -56,20 +58,20 @@ jobs:
5658
run: hatch run docs
5759

5860
- name: Run tests
59-
run: hatch run cov-retry
61+
run: hatch run test:cov-retry
6062

6163
- name: Run unit tests with lowest direct dependencies
6264
run: |
6365
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6466
hatch run uv pip install -r requirements_lowest_direct.txt
65-
hatch run test -m "not integration"
67+
hatch run test:unit
6668
6769
- name: Nightly - run unit tests with Haystack main branch
6870
if: github.event_name == 'schedule'
6971
run: |
7072
hatch env prune
7173
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
72-
hatch run cov-retry -m "not integration"
74+
hatch run test:unit
7375
7476
- name: Send event to Datadog for nightly failures
7577
if: failure() && github.event_name == 'schedule'

.github/workflows/fastembed.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,31 @@ jobs:
3434
- name: Install Hatch
3535
run: pip install --upgrade hatch
3636

37+
# TODO: Once this integration is properly typed, use hatch run test:types
38+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
3739
- name: Lint
38-
if: matrix.python-version == '3.9'
39-
run: hatch run lint:all
40+
if: matrix.python-version == '3.9' && runner.os == 'Linux'
41+
run: hatch run fmt-check && hatch run lint:typing
4042

4143
- name: Generate docs
4244
if: matrix.python-version == '3.9' && runner.os == 'Linux'
4345
run: hatch run docs
4446

4547
- name: Run tests
46-
run: hatch run cov-retry
48+
run: hatch run test:cov-retry
4749

4850
- name: Run unit tests with lowest direct dependencies
4951
run: |
5052
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
5153
hatch run uv pip install -r requirements_lowest_direct.txt
52-
hatch run test -m "not integration"
54+
hatch run test:unit
5355
5456
- name: Nightly - run unit tests with Haystack main branch
5557
if: github.event_name == 'schedule'
5658
run: |
5759
hatch env prune
5860
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
59-
hatch run cov-retry -m "not integration"
61+
hatch run test:unit
6062
6163
- name: Send event to Datadog for nightly failures
6264
if: failure() && github.event_name == 'schedule'

.github/workflows/github.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,31 @@ jobs:
4949
- name: Install Hatch
5050
run: pip install --upgrade hatch
5151

52+
# TODO: Once this integration is properly typed, use hatch run test:types
53+
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
5254
- name: Lint
5355
if: matrix.python-version == '3.9' && runner.os == 'Linux'
54-
run: hatch run lint:all
56+
run: hatch run fmt-check && hatch run lint:typing
5557

5658
- name: Generate docs
5759
if: matrix.python-version == '3.9' && runner.os == 'Linux'
5860
run: hatch run docs
5961

6062
- name: Run tests
61-
run: hatch run cov-retry
63+
run: hatch run test:cov-retry
6264

6365
- name: Run unit tests with lowest direct dependencies
6466
run: |
6567
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
6668
hatch run uv pip install -r requirements_lowest_direct.txt
67-
hatch run test -m "not integration"
69+
hatch run test:unit
6870
6971
- name: Nightly - run unit tests with Haystack main branch
7072
if: github.event_name == 'schedule'
7173
run: |
7274
hatch env prune
7375
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
74-
hatch run cov-retry -m "not integration"
76+
hatch run test:unit
7577
7678
- name: Send event to Datadog for nightly failures
7779
if: failure() && github.event_name == 'schedule'

0 commit comments

Comments
 (0)