Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev committed Nov 10, 2023
1 parent fea1721 commit d4cf574
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 60 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/_test.yml

This file was deleted.

22 changes: 19 additions & 3 deletions .github/workflows/langserve_ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
paths:
- '.github/actions/poetry_setup/action.yml'
- '.github/workflows/_lint.yml'
- '.github/workflows/_test.yml'
- '.github/workflows/langserve_ci.yml'
- '.github/workflows/ci.yml'
- 'backend/**'
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI

Expand All @@ -36,6 +35,7 @@ jobs:
secrets: inherit

test:
name: Python ${{ matrix.python-version }} tests
timeout-minutes: 5
runs-on: ubuntu-latest
defaults:
Expand All @@ -48,8 +48,24 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
name: Python ${{ matrix.python-version }} tests
services:
# label used to access the service container
redis:
# ensure the image version matches the version using locally and on prod
image: redislabs/redisearch:latest
ports:
# maps tcp port 5432 on service container to the host
- 5432:5432
# set health checks to wait until postgres has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: "Check redis is reachable"
run: redis-cli -h localhost -p 5432 ping
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
Expand Down

0 comments on commit d4cf574

Please sign in to comment.