diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 80f60b6..44b012f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -83,6 +83,24 @@ jobs: - name: Test with pytest run: make test + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + make init-uv + make install + + - name: Verify build + run: make build + # nox: # runs-on: ubuntu-latest # strategy: diff --git a/Makefile b/Makefile index f0f5c5a..0851f4e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ TEST_DIR="tests" +# Build +build: + uvx --from build pyproject-build --installer uv + # Docs doc-build: uv run mkdocs build diff --git a/noxfile.py b/noxfile.py index 8c93333..c16b0d7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -10,19 +10,23 @@ def _install_package_manager(session: nox.Session) -> nox.Session: @nox.session def tests(session: nox.Session) -> None: session = _install_package_manager(session=session) - session.run("coverage", "run", "-m", "pytest", "-vv") - session.run("coverage", "report") + session.run("make", "test") @nox.session def lint(session: nox.Session) -> None: session = _install_package_manager(session=session) - session.run("ruff", "format", "--check", ".") - session.run("ruff", "check", "--output-format=github", ".") - session.run("sqlfluff", "lint", ".") + session.run("make", "format") + session.run("make", "lint") @nox.session def typing(session: nox.Session) -> None: session = _install_package_manager(session=session) - session.run("mypy", ".") + session.run("make", "type") + + +@nox.session +def build(session: nox.Session) -> None: + session = _install_package_manager(session=session) + session.run("make", "build") diff --git a/pyproject.toml b/pyproject.toml index 60bdc0d..48e9486 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,9 +35,6 @@ dev-dependencies = [ [tool.hatch.build] packages = ["src/sample"] -include = [ - "sample/sql/*", -] ##########