Skip to content

Commit 82d209f

Browse files
authored
Merge pull request #132 from psqlpy-python/new_way_to_define_parameters_type
Rewrote the statement preparation and added implicit type inference.
2 parents d49eba4 + 936529a commit 82d209f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2030
-1515
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,26 @@ jobs:
3232
token: ${{ secrets.GITHUB_TOKEN }}
3333
args: -p psqlpy --all-features -- -W clippy::all -W clippy::pedantic
3434
pytest:
35-
name: ${{matrix.job.os}}-${{matrix.py_version}}
35+
name: ${{matrix.job.os}}-${{matrix.py_version}}-${{ matrix.postgres_version }}
3636
strategy:
3737
matrix:
3838
py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
39+
postgres_version: ["14", "15", "16", "17"]
3940
job:
4041
- os: ubuntu-latest
4142
ssl_cmd: sudo apt-get update && sudo apt-get install libssl-dev openssl
4243
runs-on: ${{matrix.job.os}}
4344
steps:
4445
- uses: actions/checkout@v1
4546
- name: Setup Postgres
46-
uses: ./.github/actions/setup_postgres/
47+
id: postgres
48+
uses: ikalnytskyi/action-setup-postgres@v7
4749
with:
4850
username: postgres
4951
password: postgres
5052
database: psqlpy_test
51-
ssl_on: "on"
52-
id: postgres
53+
ssl: true
54+
postgres-version: ${{ matrix.postgres_version }}
5355
- uses: actions-rs/toolchain@v1
5456
with:
5557
toolchain: stable
@@ -64,4 +66,6 @@ jobs:
6466
- name: Install tox
6567
run: pip install "tox-gh>=1.2,<2"
6668
- name: Run pytest
69+
env:
70+
POSTGRES_CERT_FILE: "${{ steps.postgres.outputs.certificate-path }}"
6771
run: tox -v -c tox.ini

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ def number_database_records() -> int:
8585

8686
@pytest.fixture
8787
def ssl_cert_file() -> str:
88-
return os.environ.get("POSTGRES_CERT_FILE", "./root.crt")
88+
return os.environ.get(
89+
"POSTGRES_CERT_FILE",
90+
"/home/runner/work/_temp/pgdata/server.crt",
91+
)
8992

9093

9194
@pytest.fixture

0 commit comments

Comments
 (0)