Skip to content

Commit d742700

Browse files
authored
Fix incorrect entry point. Add check of entry point to workflows. (#5)
* Fix incorrect entry point. Add check of entry point to workflows. * Fix workflow. * Fix workflow part 2.
1 parent 0a097c6 commit d742700

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,17 @@ jobs:
4141
- name: Run tests
4242
run: |
4343
uv run -p ${{ matrix.python-version }} pytest
44+
45+
test-entry-point:
46+
runs-on: ubuntu-latest
47+
name: Check the configured entry point
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Install uv
51+
uses: astral-sh/setup-uv@v5
52+
- name: Set up env
53+
run: uv sync
54+
- name: Install package
55+
run: source .venv/bin/activate && uv pip install .
56+
- name: Check entry point
57+
run: source .venv/bin/activate && render-engine init --no-input

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repository = "https://github.com/render-engine/render-engine/"
3434
documentation = "https://render-engine.readthedocs.io/en/latest/"
3535

3636
[project.scripts]
37-
render-engine = "render_engine_cli:cli"
37+
render-engine = "render_engine_cli.cli:app"
3838

3939
[tool.pytest.ini_options]
4040
pythonpath = ["src"]
@@ -55,5 +55,3 @@ select = ["E", "F", "I", "UP"]
5555
[build-system]
5656
requires = ["setuptools", "setuptools_scm", "wheel"]
5757
build-backend = "setuptools.build_meta"
58-
59-

0 commit comments

Comments
 (0)