-
Notifications
You must be signed in to change notification settings - Fork 124
56 lines (46 loc) · 1.47 KB
/
instructor_embedders.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test / instructor-embedders
on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "integrations/instructor_embedders/**"
- ".github/workflows/instructor_embedders.yml"
defaults:
run:
working-directory: integrations/instructor_embedders
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Hatch
run: pip install --upgrade hatch
- name: Lint
run: hatch run lint:all
- name: Generate docs
if: runner.os == 'Linux'
run: hatch run docs
- name: Run tests
id: tests
run: hatch run cov
- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
id: nightly-haystack-main
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
uses: ./.github/actions/send_failure
with:
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}