Skip to content

Commit 424e3f9

Browse files
committed
add coveralls support
1 parent c893d56 commit 424e3f9

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,42 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
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']
1212

1313
services:
14-
1514
postgres:
1615
image: supabase/postgres:${{ matrix.postgres-version }}
1716
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
2120
ports:
22-
- 5611:5432
21+
- 5611:5432
2322
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2423

2524
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

Comments
 (0)