Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Jun 18, 2024
1 parent 1efb5dc commit 13fbc08
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,16 @@ jobs:
secrets: inherit

test:
timeout-minutes: 5
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKDIR }}
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
name: Python ${{ matrix.python-version }} tests
services:
# Label used to access the service container
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "5432:5432"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
Expand All @@ -69,6 +51,9 @@ jobs:
- name: Install dependencies
run: |
poetry install --with test
- name: Start the service
working-directory: .
run: make start &
- name: Run tests
env:
POSTGRES_HOST: localhost
Expand Down

0 comments on commit 13fbc08

Please sign in to comment.