Skip to content

Commit

Permalink
use entry point to load web cli
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 3, 2024
1 parent ec1f076 commit c33f8c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ jobs:
env:
AIIDA_WARN_v3: 1
run: |
# Have to split tests into see issue #225
pytest -m "not frontend and not backend" -v --cov --durations=0
pytest -m backend -v --cov-append --durations=0
pytest -m frontend -v --cov-append --durations=0
pytest -v --cov --durations=0
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion aiida_workgraph/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
The commands need to be imported here for them to be registered with the top-level command group.
"""
from aiida.plugins.entry_point import get_entry_points
from aiida_workgraph.cli import cmd_graph
from aiida_workgraph.cli import cmd_web
from aiida_workgraph.cli import cmd_task

eps = get_entry_points("workgraph.cmdline")
for ep in eps:
ep.load()

__all__ = ["cmd_graph", "cmd_web", "cmd_task"]

0 comments on commit c33f8c7

Please sign in to comment.