mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-26 08:33:51 +00:00
chore: fix Windows CI (#3222)
* replicate issue * pin openjdk version * not sure it's needed
This commit is contained in:
parent
42c963f54b
commit
4ddeb7b14b
150
.github/workflows/tests.yml
vendored
150
.github/workflows/tests.yml
vendored
@ -251,44 +251,41 @@ jobs:
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
||||
# FIXME Disabled due to #3219
|
||||
# elasticsearch-tests-windows:
|
||||
# needs:
|
||||
# - mypy
|
||||
# - pylint
|
||||
# runs-on: windows-latest
|
||||
# if: contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft
|
||||
elasticsearch-tests-windows:
|
||||
needs:
|
||||
- mypy
|
||||
- pylint
|
||||
runs-on: windows-latest
|
||||
if: contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft
|
||||
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# - name: Set up Elasticsearch and pdftotext
|
||||
# run: |
|
||||
# choco install xpdf-utils
|
||||
# choco install openjdk11
|
||||
# refreshenv
|
||||
# choco install elasticsearch --version=7.9.2
|
||||
# refreshenv
|
||||
# Get-Service elasticsearch-service-x64 | Start-Service
|
||||
# - name: Install Haystack
|
||||
# run: pip install .
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
choco install --no-progress xpdf-utils
|
||||
choco install --no-progress openjdk --version=11.0.2.01
|
||||
refreshenv
|
||||
choco install --no-progress elasticsearch --version=7.9.2
|
||||
refreshenv
|
||||
Get-Service elasticsearch-service-x64 | Start-Service
|
||||
|
||||
# - name: Setup Python
|
||||
# uses: ./.github/actions/python_cache/
|
||||
# with:
|
||||
# prefix: windows
|
||||
- name: Setup Python
|
||||
uses: ./.github/actions/python_cache/
|
||||
with:
|
||||
prefix: windows
|
||||
|
||||
# - name: Run tests
|
||||
# env:
|
||||
# TOKENIZERS_PARALLELISM: 'false'
|
||||
# run: |
|
||||
# pytest ${{ env.PYTEST_PARAMS }} -m "elasticsearch and not integration" test/document_stores/ ${{ env.SUITES_EXCLUDED_FROM_WINDOWS }} --document_store_type=elasticsearch
|
||||
- name: Run tests
|
||||
env:
|
||||
TOKENIZERS_PARALLELISM: 'false'
|
||||
run: |
|
||||
pytest ${{ env.PYTEST_PARAMS }} -m "elasticsearch and not integration" test/document_stores/ ${{ env.SUITES_EXCLUDED_FROM_WINDOWS }} --document_store_type=elasticsearch
|
||||
|
||||
# - uses: act10ns/slack@v1
|
||||
# with:
|
||||
# status: ${{ job.status }}
|
||||
# channel: '#haystack'
|
||||
# if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
- uses: act10ns/slack@v1
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
||||
faiss-tests-linux:
|
||||
needs:
|
||||
@ -712,54 +709,53 @@ jobs:
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
||||
# FIXME Disabled due to #3219
|
||||
# integration-tests-windows:
|
||||
# needs:
|
||||
# - unit-tests-windows
|
||||
# - elasticsearch-tests-windows
|
||||
# runs-on: windows-latest
|
||||
# if: contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft
|
||||
integration-tests-windows:
|
||||
needs:
|
||||
- unit-tests-windows
|
||||
- elasticsearch-tests-windows
|
||||
runs-on: windows-latest
|
||||
if: contains(github.event.pull_request.labels.*.name, 'topic:windows') || !github.event.pull_request.draft
|
||||
|
||||
# timeout-minutes: 30
|
||||
# strategy:
|
||||
# fail-fast: false # Avoid cancelling the others if one of these fails
|
||||
# matrix:
|
||||
# folder:
|
||||
# - "nodes"
|
||||
# - "pipelines"
|
||||
# - "modeling"
|
||||
# - "others"
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
fail-fast: false # Avoid cancelling the others if one of these fails
|
||||
matrix:
|
||||
folder:
|
||||
- "nodes"
|
||||
- "pipelines"
|
||||
- "modeling"
|
||||
- "others"
|
||||
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# - name: Set up Elasticsearch and pdftotext
|
||||
# run: |
|
||||
# choco install xpdf-utils
|
||||
# choco install openjdk11
|
||||
# refreshenv
|
||||
# choco install tesseract --pre
|
||||
# choco install elasticsearch --version=7.9.2
|
||||
# refreshenv
|
||||
# Get-Service elasticsearch-service-x64 | Start-Service
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
choco install --no-progress xpdf-utils
|
||||
choco install --no-progress tesseract
|
||||
choco install --no-progress openjdk --version=11.0.2.01
|
||||
refreshenv
|
||||
choco install --no-progress elasticsearch --version=7.9.2
|
||||
refreshenv
|
||||
Get-Service elasticsearch-service-x64 | Start-Service
|
||||
|
||||
# - name: Setup Python
|
||||
# uses: ./.github/actions/python_cache/
|
||||
# with:
|
||||
# prefix: windows
|
||||
- name: Setup Python
|
||||
uses: ./.github/actions/python_cache/
|
||||
with:
|
||||
prefix: windows
|
||||
|
||||
# - name: Install Haystack
|
||||
# run: pip install .
|
||||
- name: Install Haystack
|
||||
run: pip install .
|
||||
|
||||
# - name: Run tests
|
||||
# env:
|
||||
# TOKENIZERS_PARALLELISM: 'false' # Avoid logspam by tokenizers
|
||||
# # FIXME many tests are disabled here!
|
||||
# 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
|
||||
- name: Run tests
|
||||
env:
|
||||
TOKENIZERS_PARALLELISM: 'false' # Avoid logspam by tokenizers
|
||||
# FIXME many tests are disabled here!
|
||||
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
|
||||
|
||||
# - uses: act10ns/slack@v1
|
||||
# with:
|
||||
# status: ${{ job.status }}
|
||||
# channel: '#haystack'
|
||||
# if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
- uses: act10ns/slack@v1
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
channel: '#haystack'
|
||||
if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main'
|
||||
|
Loading…
x
Reference in New Issue
Block a user