mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
Move autoformat-check.yml into tests.yml (#2635)
This commit is contained in:
parent
e5423b1515
commit
8d7439c623
44
.github/workflows/autoformat-check.yml
vendored
44
.github/workflows/autoformat-check.yml
vendored
@ -1,44 +0,0 @@
|
||||
name: Code & Documentation Check
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Activate this workflow manually
|
||||
workflow_run:
|
||||
workflows: [Code & Documentation Updates, Tests]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
|
||||
# This CI action mirrors autoformat.yml, with the difference that it
|
||||
# runs on Haystack's end. If the contributor hasn't run autoformat.yml,
|
||||
# then this check will fail.
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Python
|
||||
uses: ./.github/actions/python_cache/
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install .[all]
|
||||
pip install rest_api/
|
||||
pip install ui/
|
||||
|
||||
- name: Code and Docs Updates
|
||||
run: ./.github/utils/code_and_docs.sh
|
||||
|
||||
# If there is anything to commit, fail
|
||||
- name: Check status
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
git status
|
||||
echo ""
|
||||
echo "This means that the 'autoformat.yml' action didn't run."
|
||||
echo "Please enable GitHub Action on your fork to pass this check!"
|
||||
echo "See https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md#forks for instructions"
|
||||
exit 1
|
||||
fi
|
||||
36
.github/workflows/tests.yml
vendored
36
.github/workflows/tests.yml
vendored
@ -653,4 +653,38 @@ jobs:
|
||||
run: |
|
||||
pytest ${{ env.PYTEST_PARAMS }} -m "integration and not tika and not graphdb" ${{ env.SUITES_EXCLUDED_FROM_WINDOWS }} test/${{ matrix.folder }} --document_store_type=memory,faiss,elasticsearch
|
||||
|
||||
|
||||
|
||||
# This CI action mirrors autoformat.yml, with the difference that it
|
||||
# runs on Haystack's end. If the contributor hasn't run autoformat.yml,
|
||||
# then this check will fail.
|
||||
bot-check:
|
||||
runs-on: ubuntu-latest
|
||||
needs: unit-tests-linux
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Python
|
||||
uses: ./.github/actions/python_cache/
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install .[all]
|
||||
pip install rest_api/
|
||||
pip install ui/
|
||||
|
||||
- name: Code and Docs Updates
|
||||
run: ./.github/utils/code_and_docs.sh
|
||||
|
||||
# If there is anything to commit, fail
|
||||
- name: Check status
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
git status
|
||||
echo ""
|
||||
echo "This means that the 'autoformat.yml' action didn't run."
|
||||
echo "Please enable GitHub Action on your fork to pass this check!"
|
||||
echo "See https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md#forks for instructions"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user