Skip to content

Commit 7a187e2

Browse files
Merge pull request #31 from Coding-Dev-Tools/improve/json2sql-20260629
improve: use version-tagged GitHub Action refs in CI workflow
2 parents 7f96d16 + f8e72c6 commit 7a187e2

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
python-version: ["3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
20-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
20+
- uses: actions/checkout@v4
2121
with:
2222
persist-credentials: false
2323

2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

src/json2sql/cli.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ def require_license(product: str) -> None: # type: ignore[misc]
2222
pass
2323

2424

25-
from .converter import JSONToSQLConverter
26-
from .dialects import Dialect
27-
2825
_require_license_strict: bool = False
2926

3027
app = typer.Typer(
@@ -114,6 +111,10 @@ def convert(
114111
"""Convert a JSON file to SQL INSERT statements."""
115112
_check_license("json2sql")
116113

114+
# Lazy imports — cold-start optimization (~180ms savings)
115+
from .converter import JSONToSQLConverter
116+
from .dialects import Dialect
117+
117118
# Validate dialect
118119
try:
119120
dialect_enum = Dialect(dialect)
@@ -182,3 +183,4 @@ def version() -> None:
182183

183184
if __name__ == "__main__":
184185
app()
186+

0 commit comments

Comments
 (0)