Skip to content

Commit c12b821

Browse files
committed
Bundle follow-up hardening improvements
1 parent abd31d5 commit c12b821

23 files changed

Lines changed: 488 additions & 127 deletions

.github/workflows/assign-github-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
# Required to assign the issue to the commenter
1313
permissions:
14+
contents: read
1415
issues: write
1516

1617
concurrency:

.github/workflows/check-typo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
types: [opened, synchronize, reopened, ready_for_review]
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
concurrency:
1417
group: check-typo-${{ github.head_ref || github.ref }}
1518
cancel-in-progress: true

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,24 @@ name: CI
22

33
on:
44
push:
5-
branches: ["**"]
5+
branches: [main]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
lint-type-unit:
1013
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12"]
1118
steps:
1219
- uses: actions/checkout@v6
1320
- uses: actions/setup-python@v6
1421
with:
15-
python-version: "3.11"
22+
python-version: ${{ matrix.python-version }}
1623
- name: Install dependencies
1724
run: |
1825
python -m pip install --upgrade pip
@@ -26,9 +33,13 @@ jobs:
2633

2734
integration:
2835
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
python-version: ["3.10", "3.11", "3.12"]
2940
services:
3041
paradedb:
31-
image: paradedb/paradedb:latest
42+
image: paradedb/paradedb:0.21.10-pg18
3243
ports:
3344
- 5432:5432
3445
env:
@@ -44,7 +55,7 @@ jobs:
4455
- uses: actions/checkout@v6
4556
- uses: actions/setup-python@v6
4657
with:
47-
python-version: "3.11"
58+
python-version: ${{ matrix.python-version }}
4859
- name: Install dependencies
4960
run: |
5061
python -m pip install --upgrade pip
@@ -63,7 +74,7 @@ jobs:
6374
exit 1
6475
- name: Integration tests
6576
env:
66-
PARADEDB_TEST_DSN: postgres://postgres:postgres@localhost:5432/postgres
77+
PARADEDB_TEST_DSN: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
6778
run: python -m pytest -m integration
6879
- name: Run examples
6980
env:

.github/workflows/lint-bash.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- ".github/workflows/lint-bash.yml"
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
concurrency:
1720
group: lint-bash-${{ github.head_ref || github.ref }}
1821
cancel-in-progress: true

.github/workflows/lint-format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
types: [opened, synchronize, reopened, ready_for_review]
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
concurrency:
1417
group: lint-format-${{ github.head_ref || github.ref }}
1518
cancel-in-progress: true

.github/workflows/lint-markdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- ".github/workflows/lint-markdown.yml"
1515
workflow_dispatch:
1616

17+
permissions:
18+
contents: read
19+
1720
concurrency:
1821
group: lint-markdown-${{ github.head_ref || github.ref }}
1922
cancel-in-progress: true

.github/workflows/lint-pr-title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
types: [opened, synchronize, reopened, ready_for_review, edited]
1111

1212
permissions:
13+
contents: read
1314
pull-requests: read
1415

1516
concurrency:

.github/workflows/lint-yaml.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- ".github/workflows/lint-yaml.yml"
1515
workflow_dispatch:
1616

17+
permissions:
18+
contents: read
19+
1720
concurrency:
1821
group: lint-yaml-${{ github.head_ref || github.ref }}
1922
cancel-in-progress: true

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Unreleased
44

5+
### Changed
6+
7+
- Hardened BM25 index introspection, validation, and CI/workflow configuration.
8+
9+
## 0.1.0 - 2026-03-01
10+
511
### Added
612

713
- Full BM25 search/query helper set with advanced operators.

codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ coverage:
88
default:
99
target: auto
1010
threshold: 5%
11-
informational: true
11+
informational: false
1212
patch:
1313
default:
1414
target: 80%
1515
threshold: 5%
16-
informational: true
16+
informational: false
1717

1818
comment:
1919
layout: "reach, diff, flags, files"

0 commit comments

Comments
 (0)