File tree Expand file tree Collapse file tree 5 files changed +53
-0
lines changed
Expand file tree Collapse file tree 5 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 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@v4
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'
Original file line number Diff line number Diff line change 1919 - id : mixed-line-ending
2020 - id : check-yaml
2121 - id : pretty-format-json
22+ args : [--autofix]
2223 - id : detect-private-key
2324 - id : debug-statements
2425
Original file line number Diff line number Diff line change 1+ sequenceDiagram
2+ autonumber
3+ participant Pytest as Pytest runner
4+ participant ProcFactory as postgresql_proc_factory
5+ participant PgServer as PostgreSQL process
6+ participant TemplateDB as Template DB (seeded)
7+ participant TestDB as Per -test DB (clone)
8+
9+ Pytest ->> ProcFactory : request postgresql_proc with load=[load_database]
10+ ProcFactory ->> PgServer : start server
11+ ProcFactory ->> TemplateDB : invoke load_database (create metadata, seed data)
12+ Note right of TemplateDB : Template is created and seeded once per full run
13+ loop per test
14+ Pytest ->> PgServer : request clone of TemplateDB
15+ PgServer ->> TestDB : create cloned database for test
16+ Pytest ->> TestDB : run test using cloned DB
17+ Pytest ->> TestDB : teardown: commit transaction
18+ Pytest ->> TestDB : teardown: drop_all metadata (cleanup)
19+ end
Original file line number Diff line number Diff line change 1+ {
2+ "args" : [
3+ " --no-sandbox" ,
4+ " --disable-setuid-sandbox"
5+ ]
6+ }
You can’t perform that action at this time.
0 commit comments