Skip to content

New way to define parameters type #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,26 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: -p psqlpy --all-features -- -W clippy::all -W clippy::pedantic
pytest:
name: ${{matrix.job.os}}-${{matrix.py_version}}
name: ${{matrix.job.os}}-${{matrix.py_version}}-${{ matrix.postgres_version }}
strategy:
matrix:
py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
postgres_version: ["14", "15", "16", "17"]
job:
- os: ubuntu-latest
ssl_cmd: sudo apt-get update && sudo apt-get install libssl-dev openssl
runs-on: ${{matrix.job.os}}
steps:
- uses: actions/checkout@v1
- name: Setup Postgres
uses: ./.github/actions/setup_postgres/
id: postgres
uses: ikalnytskyi/action-setup-postgres@v7
with:
username: postgres
password: postgres
database: psqlpy_test
ssl_on: "on"
id: postgres
ssl: true
postgres-version: ${{ matrix.postgres_version }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -64,4 +66,6 @@ jobs:
- name: Install tox
run: pip install "tox-gh>=1.2,<2"
- name: Run pytest
env:
POSTGRES_CERT_FILE: "${{ steps.postgres.outputs.certificate-path }}"
run: tox -v -c tox.ini
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def number_database_records() -> int:

@pytest.fixture
def ssl_cert_file() -> str:
return os.environ.get("POSTGRES_CERT_FILE", "./root.crt")
return os.environ.get(
"POSTGRES_CERT_FILE",
"/home/runner/work/_temp/pgdata/server.crt",
)


@pytest.fixture
Expand Down
Loading
Loading