diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9dd1aa6..d6443b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,3 +41,17 @@ jobs: - name: Run tests run: | uv run -p ${{ matrix.python-version }} pytest + + test-entry-point: + runs-on: ubuntu-latest + name: Check the configured entry point + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 + - name: Set up env + run: uv sync + - name: Install package + run: source .venv/bin/activate && uv pip install . + - name: Check entry point + run: source .venv/bin/activate && render-engine init --no-input diff --git a/pyproject.toml b/pyproject.toml index e820465..196a3d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ repository = "https://github.com/render-engine/render-engine/" documentation = "https://render-engine.readthedocs.io/en/latest/" [project.scripts] -render-engine = "render_engine_cli:cli" +render-engine = "render_engine_cli.cli:app" [tool.pytest.ini_options] pythonpath = ["src"] @@ -55,5 +55,3 @@ select = ["E", "F", "I", "UP"] [build-system] requires = ["setuptools", "setuptools_scm", "wheel"] build-backend = "setuptools.build_meta" - -