-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_dynamic_outgoing_edges
- Loading branch information
Showing
149 changed files
with
5,385 additions
and
5,826 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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,11 @@ | ||
# See https://help.github.com/articles/about-codeowners/ for syntax | ||
|
||
# Core Engineering will be the default owners for everything | ||
# in the repo. Unless a later match takes precedence, | ||
# @deepset-ai/core-engineering will be requested for review | ||
# when someone opens a pull request. | ||
* @deepset-ai/core-engineering | ||
|
||
# Documentation | ||
*.md @deepset-ai/documentation @deepset-ai/core-engineering | ||
/tutorials/ @deepset-ai/documentation @deepset-ai/core-engineering |
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import logging | ||
from pathlib import Path | ||
|
This file contains 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import json | ||
from pathlib import Path | ||
import os | ||
|
This file contains 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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e # Fails on any error in the following loop | ||
cd docs/_src/api/api/ | ||
for file in ../pydoc/* ; do | ||
pydoc-markdown "$file" | ||
done |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,47 @@ | ||
name: Black | ||
|
||
on: | ||
workflow_dispatch: # Activate this workflow manually | ||
pull_request: | ||
|
||
jobs: | ||
|
||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: ./.github/actions/python_cache/ | ||
|
||
- name: Install Haystack | ||
run: | | ||
pip install --upgrade pip | ||
pip install .[dev] | ||
- name: Check status | ||
run: | | ||
if ! black . --check; then | ||
git status | ||
echo "###################################################################################################" | ||
echo "# " | ||
echo "# CHECK FAILED! Black found issues with your code formatting." | ||
echo "# " | ||
echo "# Either:" | ||
echo "# 1. Run Black locally before committing:" | ||
echo "# " | ||
echo "# pip install black==22.6.0" | ||
echo "# black ." | ||
echo "# " | ||
echo "# 2. Install the pre-commit hook:" | ||
echo "# " | ||
echo "# pre-commit install --hook-type pre-push" | ||
echo "# " | ||
echo "# 3. See https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md for help." | ||
echo "# " | ||
echo "# If you have further problems, please open an issue: https://github.com/deepset-ai/haystack/issues" | ||
echo "# " | ||
echo "##################################################################################################" | ||
exit 1 | ||
fi |
This file contains 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,49 @@ | ||
name: Documentation | ||
|
||
on: | ||
workflow_dispatch: # Activate this workflow manually | ||
pull_request: | ||
|
||
jobs: | ||
|
||
api-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: ./.github/actions/python_cache/ | ||
|
||
- name: Install Haystack | ||
run: | | ||
pip install --upgrade pip | ||
pip install -U .[dev] | ||
- name: Update API documentation | ||
run: .github/utils/pydoc-markdown.sh | ||
|
||
- name: Check status | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git status | ||
echo "###################################################################################################" | ||
echo "# " | ||
echo "# CHECK FAILED! The API docs were not updated." | ||
echo "# " | ||
echo "# Either:" | ||
echo "# 1. Generate the new API docs locally before committing:" | ||
echo "# " | ||
echo "# .github/utils/pydoc-markdown.sh" | ||
echo "# " | ||
echo "# 2. Install the pre-commit hook:" | ||
echo "# " | ||
echo "# pre-commit install --hook-type pre-push" | ||
echo "# " | ||
echo "# 3. See https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md for help." | ||
echo "# " | ||
echo "# If you have further problems, please open an issue: https://github.com/deepset-ai/haystack/issues" | ||
echo "# " | ||
echo "###################################################################################################" | ||
exit 1 | ||
fi |
This file contains 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,96 @@ | ||
name: Schemas | ||
|
||
on: | ||
workflow_dispatch: # Activate this workflow manually | ||
pull_request: | ||
|
||
jobs: | ||
|
||
openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: ./.github/actions/python_cache/ | ||
|
||
- name: Install Haystack | ||
run: | | ||
pip install --upgrade pip | ||
pip install .[dev] | ||
pip install -U rest_api/ | ||
- name: Update OpenAPI specs | ||
run: python .github/utils/generate_openapi_specs.py | ||
|
||
- name: Check status | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git status | ||
echo "##################################################################################################" | ||
git diff | ||
echo "##################################################################################################" | ||
echo "# " | ||
echo "# CHECK FAILED! OpenAPI specs were not updated." | ||
echo "# " | ||
echo "# Please generate the new OpenAPI specs locally:" | ||
echo "# " | ||
echo "# python .github/utils/generate_openapi_specs.py" | ||
echo "# " | ||
echo "# You need a FULL INSTALLATION of Haystack for this step to work." | ||
echo "# " | ||
echo "# pip install -e .[all]" | ||
echo "# " | ||
echo "# If you cannot do that for any reason, please disable the hook, push " | ||
echo "# and let us know in the PR description." | ||
echo "# " | ||
echo "# See https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md for instructions." | ||
echo "# " | ||
echo "# If you have further problems, please open an issue: https://github.com/deepset-ai/haystack/issues" | ||
echo "# " | ||
echo "###################################################################################################" | ||
exit 1 | ||
fi | ||
pipeline-yaml: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: ./.github/actions/python_cache/ | ||
|
||
- name: Install sndfile | ||
run: sudo apt update && sudo apt-get install libsndfile1 ffmpeg | ||
|
||
- name: Install Haystack | ||
run: | | ||
pip install --upgrade pip | ||
pip install -U .[all] | ||
- name: Update pipeline YAML schemas | ||
run: python .github/utils/generate_json_schema.py | ||
|
||
- name: Check status | ||
run: | | ||
if [[ `git status --porcelain` ]]; then | ||
git status | ||
echo "##################################################################################################" | ||
git diff | ||
echo "##################################################################################################" | ||
echo "# " | ||
echo "# CHECK FAILED! The YAML schemas for pipelines were not updated." | ||
echo "# " | ||
echo "# Please generate the new schemas locally:" | ||
echo "# " | ||
echo "# python .github/utils/generate_json_schema.py" | ||
echo "# " | ||
echo "# Or see https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md for help." | ||
echo "# " | ||
echo "# If you have further problems, please open an issue: https://github.com/deepset-ai/haystack/issues" | ||
echo "# " | ||
echo "##################################################################################################" | ||
exit 1 | ||
fi |
Oops, something went wrong.