Skip to content

Commit b71a3c3

Browse files
tboy1337cursoragent
andcommitted
Merge branch 'main' into edit
Resolved conflict in .github/workflows/dockerised-postgres.yml by keeping the three-step workflow approach from edit branch and updating pipenv-setup action version to v4.2.1 to match main branch updates. The resolution maintains consistency with other workflow files (oldest-postgres.yml and single-postgres.yml) which use the same pattern: - pipenv-setup@v4.2.1 for environment setup - pipenv-run@v4.1.1 for package installation and test execution Co-authored-by: Cursor <cursoragent@cursor.com>
2 parents f872e7f + b060e07 commit b71a3c3

22 files changed

Lines changed: 83 additions & 43 deletions

.coderabbit.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: en-GB
2+
reviews:
3+
path_instructions:
4+
- path: "newsfragments/*.rst"
5+
instructions: |
6+
Validate newsfragment files:
7+
1. Read valid types from [tool.towncrier.fragment] in pyproject.toml
8+
2. Filename must follow the pattern: [number].[type].rst OR +[hash].[type].rst where:
9+
- [number] is an issue number or PR number
10+
- [type] must be one of the types defined in towncrier configuration
11+
3. Content must be a clear, concise description of the change
12+
4. Content should be suitable for inclusion in CHANGES.rst
13+
5. Verify the type matches the nature of the change based on towncrier type definitions
14+
6. Some changes may require multiple types. Especially breaking changes
15+
7. Flag any files with invalid types or malformed filenames
16+
8. Check that the description is meaningful (not just "fix" or "update")
17+
18+
pre_merge_checks:
19+
custom_checks:
20+
- name: "Newsfragment Check"
21+
mode: "warning"
22+
instructions: |
23+
Check if a newsfragment file has been added to the newsfragments/ directory.
24+
Read the towncrier configuration from pyproject.toml to determine valid newsfragment types.
25+
If no newsfragment is present, suggest which type should be added based on the PR changes.
26+
Suggest the filename format: [issue_or_pr_number].[type].rst (or +[hash].[type].rst for orphan fragments)
27+
Remind contributors to use: `pipenv run towncrier create [number].[type].rst` (or `pipenv run towncrier create +.[type]` for orphan fragments)
28+
Skip the check if the PR only updates existing newsfragments or is a trivial change.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ on:
88

99
jobs:
1010
build:
11-
uses: fizyk/actions-reuse/.github/workflows/shared-pypi.yml@v4.2.1
11+
uses: fizyk/actions-reuse/.github/workflows/shared-pypi.yml@v4.3.0

.github/workflows/diagram.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ jobs:
1717
- name: Install Mermaid CLI
1818
run: npm install -g @mermaid-js/mermaid-cli
1919

20-
- name: Render Diagram
21-
run: mmdc -p docs/puppeteer-config.json -i docs/architecture.mmd -o docs/images/architecture.svg -t neutral
20+
- name: Render Diagrams
21+
run: |
22+
for file in docs/*.mmd; do
23+
base="$(basename "${file}" .mmd)"
24+
mmdc -p docs/puppeteer-config.json -i "${file}" -o "docs/images/${base}.svg" -t neutral
25+
done
2226
2327
- name: Commit and Push
2428
uses: stefanzweifel/git-auto-commit-action@v7

.github/workflows/dockerised-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@v6
5252
- name: Set up Pipenv on python ${{ matrix.python-version }}
53-
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.1.1
53+
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.2.1
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
allow-prereleases: true

.github/workflows/oldest-postgres.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v6
3838
- name: Set up Pipenv on python ${{ matrix.python-version }}
39-
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.1.1
39+
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.2.1
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
cache: false
@@ -55,19 +55,19 @@ jobs:
5555
if: ${{ contains(inputs.python-versions, 'pypy') }}
5656
run: sudo apt install libpq5
5757
- name: Install oldest supported versions
58-
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
58+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1
5959
with:
6060
command: pip install -r oldest/requirements.txt
6161
- name: Install package in editable mode
6262
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6363
with:
6464
command: pip install -e . --no-deps
6565
- name: Run tests without xdist
66-
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
66+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1
6767
with:
6868
command: pytest -c pyproject.oldest.toml -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
6969
- name: Run xdist test
70-
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
70+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1
7171
with:
7272
command: pytest -n auto -c pyproject.oldest.toml --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
7373
- uses: actions/upload-artifact@v6

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66

77
jobs:
88
pr-check:
9-
uses: fizyk/actions-reuse/.github/workflows/shared-pr-check.yml@v4.1.1
9+
uses: fizyk/actions-reuse/.github/workflows/shared-pr-check.yml@v4.3.0

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ on:
99

1010
jobs:
1111
pre-commit:
12-
uses: fizyk/actions-reuse/.github/workflows/shared-pre-commit.yml@v4.2.1
12+
uses: fizyk/actions-reuse/.github/workflows/shared-pre-commit.yml@v4.3.0

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- v*
66
jobs:
77
build-n-publish:
8-
uses: fizyk/actions-reuse/.github/workflows/shared-pypi.yml@v4.2.1
8+
uses: fizyk/actions-reuse/.github/workflows/shared-pypi.yml@v4.3.0
99
with:
1010
publish: true
1111
secrets:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13-
uses: fizyk/actions-reuse/.github/workflows/shared-release.yml@v4.2.1
13+
uses: fizyk/actions-reuse/.github/workflows/shared-release.yml@v4.3.0
1414
with:
1515
version: ${{ inputs.version }}
1616
secrets:

.github/workflows/single-postgres.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v6
3838
- name: Set up Pipenv on python ${{ matrix.python-version }}
39-
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.1.1
39+
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.2.1
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
allow-prereleases: true
@@ -98,11 +98,11 @@ jobs:
9898
if: ${{ contains(inputs.python-versions, 'pypy') && runner.os == 'Linux' }}
9999
run: sudo apt install libpq5
100100
- name: Run test
101-
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
101+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1
102102
with:
103103
command: pytest -svv -p no:xdist --postgresql-exec="${{ env.POSTGRESQL_EXEC }}" -k "not docker" --cov-report=xml --basetemp="${{ runner.temp }}"
104104
- name: Run xdist test
105-
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
105+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1
106106
with:
107107
command: pytest -n auto --dist loadgroup --max-worker-restart 0 --postgresql-exec="${{ env.POSTGRESQL_EXEC }}" -k "not docker" --cov-report=xml:coverage-xdist.xml --basetemp="${{ runner.temp }}"
108108
- uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)