Skip to content

Commit

Permalink
ci: make Tika service smoothly run on MacOs (deepset-ai#6619)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Dec 22, 2023
1 parent 506ab81 commit 30065ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ jobs:
runs-on: macos-latest
env:
HAYSTACK_MPS_ENABLED: false

steps:
- uses: actions/checkout@v4

Expand All @@ -247,7 +248,14 @@ jobs:
key: pip-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }}

- name: Run Tika
run: docker run -d -p 9998:9998 apache/tika:2.9.0.0
run: |
docker run -d -p 9998:9998 \
--health-cmd='curl --fail -X GET http://localhost:9998/tika' \
--health-interval=5s \
--health-retries=5 \
--health-timeout=2s \
--health-start-period=1m \
apache/tika:2.9.0.0
- name: Run
run: pytest --maxfail=5 -m "integration" test
Expand Down

0 comments on commit 30065ee

Please sign in to comment.