Skip to content

Commit 0505424

Browse files
datnguyeil-dat
andauthored
refactor: new codebase structure (#139)
* refactor: re-organize structure * test: fix failed tests * feat: add integration tests * fix: explicit encoding file io * chore: more dry tests * chore: explicit error exceptions and other enhancements * fix: Python 3.9 incompatibility with PEP 604 * docs: update docs site * chore: add ban import in functions --------- Co-authored-by: Dat Nguyen <dat@infinitelambda.com>
1 parent a73deb6 commit 0505424

115 files changed

Lines changed: 8900 additions & 2728 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci_pr.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: CI PR
33
on:
44
pull_request:
55
branches: [ main ]
6+
paths:
7+
- "dbterd/**"
8+
- "tests/**"
9+
- "pyproject.toml"
10+
- "uv.lock"
11+
- ".github/workflows/ci_pr.yml"
612

713
permissions: read-all
814

@@ -12,7 +18,7 @@ jobs:
1218
strategy:
1319
matrix:
1420
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
21+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1622

1723
steps:
1824
- uses: actions/checkout@v4
@@ -41,17 +47,18 @@ jobs:
4147
run: |
4248
uv run poe lint
4349
44-
- name: Run tests
50+
- name: Run unit tests
4551
run: |
4652
uv run poe test-cov
4753
48-
- name: Generate coverage report
49-
run: |
50-
uv run coverage xml -o coverage.xml
51-
5254
- name: Upload coverage to Codecov
5355
uses: codecov/codecov-action@v4
5456
with:
5557
token: ${{ secrets.CODECOV_TOKEN }}
5658
file: ./coverage.xml
5759
fail_ci_if_error: true
60+
61+
- name: Run integration tests
62+
if: matrix.python-version == '3.10'
63+
run: |
64+
uv run poe test-integration

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Transform your dbt artifact files or metadata into stunning Entity Relationship
1212
[![PyPI version](https://badge.fury.io/py/dbterd.svg)](https://pypi.org/project/dbterd/)
1313
![python-cli](https://img.shields.io/badge/CLI-Python-FFCE3E?labelColor=14354C&logo=python&logoColor=white)
1414
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
15-
[![python](https://img.shields.io/badge/Python-3.9|3.10|3.11|3.12-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
15+
[![python](https://img.shields.io/badge/Python-3.9|3.10|3.11|3.12|3.13-3776AB.svg?style=flat&logo=python&logoColor=white)](https://www.python.org)
1616
[![codecov](https://codecov.io/gh/datnguye/dbterd/graph/badge.svg?token=N7DMQBLH4P)](https://codecov.io/gh/datnguye/dbterd)
1717

1818
[![dbterd stars](https://img.shields.io/github/stars/datnguye/dbterd.svg?logo=github&style=for-the-badge&label=Star%20this%20repo)](https://github.com/datnguye/dbterd)

dbterd/adapters/adapter.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)