Skip to content

Commit

Permalink
test: add tests for psycopg2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
altaurog committed Mar 30, 2024
1 parent 1d43b96 commit 1a78fc5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,19 @@ jobs:
- name: install python deps
run: pip3 install tox tox-docker
- name: run tests
run: tox -e py310-${{ matrix.pg }}
run: tox -e ${{ matrix.pg }}

psycopg2.8:
name: psycopg2.8
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install python deps
run: pip3 install tox tox-docker
- name: run tests
run: tox -e psycopg2.8
16 changes: 12 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
envlist =
py{38,39,310,311,312}
py310-pg{12,13,14,15}
py310-vector
vector
psycopg2.8
[testenv]
deps =
pytest
psycopg2
psycopg2~=2.9
commands = pytest tests/
docker = pg16
setenv =
Expand All @@ -23,17 +24,24 @@ docker = pg13
docker = pg14
[testenv:py310-pg15]
docker = pg15
[testenv:py310-vector]
[testenv:vector]
base_python = python3.10
docker = pgvector
commands = pytest tests/test_contrib.py -vk Vector
[testenv:coverage]
deps =
pytest
pytest-cov
psycopg2
psycopg2~=2.9
commands =
pytest --cov=pgcopy/ tests/
docker = pgvector
[testenv:psycopg2.8]
base_python = python3.10
deps =
pytest
psycopg2==2.8.*
docker = pg14
[docker:pg12]
image = postgres:12
environment=
Expand Down

0 comments on commit 1a78fc5

Please sign in to comment.