-
Notifications
You must be signed in to change notification settings - Fork 254
ci: adding FAISS github workflow #2879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
daf3f10
adding FAISS github workflow
davidsbatista 09e553f
adding win and mac to matrix
davidsbatista 206a50f
reformatting files
davidsbatista 4a28098
adding py.typed
davidsbatista 7d18125
adding safeguard to check for index before operations that need the i…
davidsbatista ff58aba
pinning numpy
davidsbatista 835abec
pinning numpy
davidsbatista 76e7ca9
pinning numpy
davidsbatista 53a8df1
removing numpy, making dependent on faiss-cpu
davidsbatista 64cd717
trying to fix lowest direct dependencies run
davidsbatista b9ea99c
temporary disable lowest direct dependencies run
davidsbatista c3472c2
Merge branch 'main' into feat/adding-workflow-for-FAISS
davidsbatista b3489e4
Merge branch 'main' into feat/adding-workflow-for-FAISS
davidsbatista c31d2f8
debugging: unit tests with lowest direct dependencies
davidsbatista a0756ae
debugging: unit tests with lowest direct dependencies
davidsbatista 7c1eb85
Merge branch 'main' into feat/adding-workflow-for-FAISS
davidsbatista f4e6c9d
debugging: unit tests with lowest direct dependencies
davidsbatista 1c8d4b5
debugging: unit tests with lowest direct dependencies
davidsbatista c088a48
debugging: unit tests with lowest direct dependencies - pinning virtu…
davidsbatista c003271
debugging: unit tests with lowest direct dependencies - pinning virtu…
davidsbatista 421896b
adding execptions to docstrings
davidsbatista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # This workflow comes from https://github.com/ofek/hatch-mypyc | ||
| # https://github.com/ofek/hatch-mypyc/blob/5a198c0ba8660494d02716cfc9d79ce4adfb1442/.github/workflows/test.yml | ||
| name: Test / faiss | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
| pull_request: | ||
| paths: | ||
| - "integrations/faiss/**" | ||
| - "!integrations/faiss/*.md" | ||
| - ".github/workflows/faiss.yml" | ||
|
|
||
| concurrency: | ||
| group: faiss-${{ github.head_ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| PYTHONUNBUFFERED: "1" | ||
| FORCE_COLOR: "1" | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: integrations/faiss | ||
|
|
||
| jobs: | ||
| run: | ||
| name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # FAISS wheels are most reliable on Linux in CI. | ||
| os: [ubuntu-latest] #[ubuntu-latest, windows-latest, macos-latest] | ||
| python-version: ["3.10", "3.13"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install Hatch | ||
| run: pip install hatch "virtualenv<21.0.0" | ||
|
|
||
| - name: Lint | ||
| if: matrix.python-version == '3.10' && runner.os == 'Linux' | ||
| run: hatch run fmt-check && hatch run test:types | ||
|
|
||
| - name: Run tests | ||
| run: hatch run test:cov-retry | ||
|
|
||
| - name: Run unit tests with lowest direct dependencies | ||
| if: matrix.python-version == '3.10' && runner.os == 'Linux' | ||
| run: | | ||
| hatch env prune | ||
| hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt | ||
| hatch -e test env run -- uv pip install -r requirements_lowest_direct.txt | ||
| hatch run test:unit | ||
|
|
||
| - name: Nightly - run unit tests with Haystack main branch | ||
| if: github.event_name == 'schedule' | ||
| run: | | ||
| hatch env prune | ||
| hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main | ||
| hatch run test:unit | ||
|
|
||
| - name: Send event to Datadog for nightly failures | ||
| if: failure() && github.event_name == 'schedule' | ||
| uses: ./.github/actions/send_failure | ||
| with: | ||
| title: | | ||
| Core integrations nightly tests failure: ${{ github.workflow }} | ||
| api-key: ${{ secrets.CORE_DATADOG_API_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.