|
6 | 6 | build: |
7 | 7 | runs-on: ubuntu-latest |
8 | 8 | strategy: |
9 | | - matrix: |
10 | | - python-version: ['3.8', '3.9', '3.10', '3.11'] |
11 | | - postgres-version: ['15.1.1.78'] |
| 9 | + matrix: |
| 10 | + python-version: ['3.8', '3.9', '3.10', '3.11'] |
| 11 | + postgres-version: ['15.1.1.78'] |
12 | 12 |
|
13 | 13 | services: |
14 | | - |
15 | 14 | postgres: |
16 | 15 | image: supabase/postgres:${{ matrix.postgres-version }} |
17 | 16 | env: |
18 | | - POSTGRES_DB: vecs_db |
19 | | - POSTGRES_USER: postgres |
20 | | - POSTGRES_PASSWORD: password |
| 17 | + postgres_db: vecs_db |
| 18 | + postgres_user: postgres |
| 19 | + postgres_password: password |
21 | 20 | ports: |
22 | | - - 5611:5432 |
| 21 | + - 5611:5432 |
23 | 22 | options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |
24 | 23 |
|
25 | 24 | steps: |
26 | | - - uses: actions/checkout@v3 |
27 | | - - name: Set up Python ${{ matrix.python-version }} |
28 | | - uses: actions/setup-python@v4 |
29 | | - with: |
30 | | - python-version: ${{ matrix.python-version }} |
31 | | - |
32 | | - - name: install |
33 | | - run: | |
34 | | - pip install --upgrade pip |
35 | | - pip install wheel |
36 | | - pip install -e ".[dev, text_embedding]" |
37 | | -
|
38 | | - - name: test with coverage |
39 | | - run: | |
40 | | - pytest |
| 25 | + - uses: actions/checkout@v3 |
| 26 | + |
| 27 | + - name: set up python ${{ matrix.python-version }} |
| 28 | + uses: actions/setup-python@v4 |
| 29 | + with: |
| 30 | + python-version: ${{ matrix.python-version }} |
| 31 | + |
| 32 | + - name: install |
| 33 | + run: | |
| 34 | + pip install --upgrade pip |
| 35 | + pip install wheel |
| 36 | + pip install -e ".[dev, text_embedding]" |
| 37 | +
|
| 38 | + - name: test with coverage |
| 39 | + run: | |
| 40 | + pip install coverage coveralls |
| 41 | + coverage run -m pytest |
| 42 | + coverage report |
| 43 | +
|
| 44 | + - name: upload coverage to coveralls |
| 45 | + run: coveralls |
| 46 | + env: |
| 47 | + coveralls_repo_token: ${{ secrets.COVERALLS_REPO_TOKEN }} |
0 commit comments