Skip to content

Commit 5d4fb91

Browse files
committed
chore: merge updates from main, CI fixes, and dependency updates
1 parent b549907 commit 5d4fb91

30 files changed

+559
-349
lines changed

.github/workflows/diagram.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Render Mermaid Diagrams
2+
on:
3+
push:
4+
paths:
5+
- 'docs/*.mmd' # Trigger only when mermaid files change
6+
7+
jobs:
8+
render:
9+
runs-on: ubuntu-latest
10+
# Grant the action permission to write to the repository
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v6
16+
17+
- name: Install Mermaid CLI
18+
run: npm install -g @mermaid-js/mermaid-cli
19+
20+
- name: Render Diagram
21+
run: mmdc -p docs/puppeteer-config.json -i docs/architecture.mmd -o docs/images/architecture.svg -t neutral
22+
23+
- name: Commit and Push
24+
uses: stefanzweifel/git-auto-commit-action@v7
25+
with:
26+
commit_message: "docs: update rendered mermaid diagram [skip ci]"
27+
file_pattern: 'docs/images/*.svg'

.github/workflows/dockerised-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
command: pytest -n 0 --max-worker-restart 0 -k docker --postgresql-host=localhost --postgresql-port 5433 --postgresql-password=postgres --cov-report=xml:coverage-docker.xml
5757
allow-prereleases: true
5858
- name: Upload coverage to Codecov
59-
uses: codecov/codecov-action@v5.5.1
59+
uses: codecov/codecov-action@v5.5.2
6060
with:
6161
token: ${{ secrets.codecov_token }}
6262
flags: unittests

.github/workflows/oldest-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6767
with:
6868
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
69-
- uses: actions/upload-artifact@v5
69+
- uses: actions/upload-artifact@v6
7070
if: failure()
7171
with:
7272
name: postgresql-${{ matrix.python-version }}-${{ inputs.postgresql }}
7373
path: /tmp/pytest-of-runner/**
7474
- name: Upload coverage to Codecov
75-
uses: codecov/codecov-action@v5.5.1
75+
uses: codecov/codecov-action@v5.5.2
7676
with:
7777
token: ${{ secrets.codecov_token }}
7878
flags: unittests

.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.1.1
12+
uses: fizyk/actions-reuse/.github/workflows/shared-pre-commit.yml@v4.2.1

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'New version to be added'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
uses: fizyk/actions-reuse/.github/workflows/shared-release.yml@v4.2.1
14+
with:
15+
version: ${{ inputs.version }}
16+
secrets:
17+
app_id: ${{ secrets.RELEASE_APP_ID }}
18+
private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}

.github/workflows/single-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ jobs:
6161
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.1.1
6262
with:
6363
command: pytest -n auto --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
64-
- uses: actions/upload-artifact@v5
64+
- uses: actions/upload-artifact@v6
6565
if: failure()
6666
with:
6767
name: postgresql-${{ matrix.python-version }}-${{ inputs.postgresql }}
6868
path: /tmp/pytest-of-runner/**
6969
- name: Upload coverage to Codecov
70-
uses: codecov/codecov-action@v5.5.1
70+
uses: codecov/codecov-action@v5.5.2
7171
with:
7272
token: ${{ secrets.codecov_token }}
7373
flags: unittests

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ repos:
1616
- id: trailing-whitespace
1717
- id: check-toml
1818
- id: end-of-file-fixer
19+
exclude_types: [svg]
1920
- id: mixed-line-ending
2021
- id: check-yaml
2122
- id: pretty-format-json
23+
args: [--autofix]
2224
- id: detect-private-key
2325
- id: debug-statements
2426

2527
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.14.6
28+
rev: v0.14.13
2729
hooks:
2830
- id: ruff-check
2931
args: [--fix, --exit-non-zero-on-fix, --respect-gitignore, --show-fixes]

Pipfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
pytest = "==9.0.0"
7+
pytest = "==9.0.2"
88
port-for = "==1.0.0"
99
mirakuru = "==3.0.1"
1010
packaging = "==25.0"
11-
psycopg = "==3.2.12"
11+
psycopg = "==3.3.2"
1212

1313
[dev-packages]
1414
towncrier = "==25.8.0"
15-
psycopg-binary = {version = "==3.2.12", markers="implementation_name == 'cpython'"}
15+
psycopg-binary = {version = "==3.3.2", markers="implementation_name == 'cpython'"}
1616
pytest-cov = "==7.0.0"
1717
pytest-xdist = "==3.8.0"
1818
mock = "==5.2.0"
19-
mypy = "==1.18.2"
20-
types-setuptools = "==80.9.0.20250822"
19+
mypy = {version = "==1.19.1", markers="implementation_name == 'cpython'"}
20+
types-setuptools = "==80.9.0.20251223"
2121
tbump = "==6.11.0"

0 commit comments

Comments
 (0)