Skip to content

Commit

Permalink
Update readme and fix tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 authored Dec 3, 2024
1 parent f42616c commit f4e8140
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Welcome to AiiDA WorkGraph Web UI!
[![PyPI version](https://badge.fury.io/py/aiida-workgraph-web-ui.svg)](https://badge.fury.io/py/aiida-workgraph-web-ui)
[![Docs status](https://readthedocs.org/projects/aiida-workgraph-web-ui/badge)](http://aiida-workgraph-web-ui.readthedocs.io/)
[![Unit test](https://github.com/aiidateam/aiida-workgraph-web-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/aiidateam/aiida-workgraph-web-ui/actions/workflows/ci.yml)


Web UI to visualize and manage the AiiDA WorkGraph.

## Frontend
Use `rete-kit` to create the frontend, using `react`

Expand Down
1 change: 0 additions & 1 deletion aiida_workgraph_web_ui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__version__ = "0.1.0"
2 changes: 0 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#
import os
import sys
import shutil
from pathlib import Path

sys.path.insert(0, os.path.abspath("../.."))

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ requires-python = ">=3.9"
dependencies = [
"numpy~=1.21",
"scipy",
"ase",
"aiida-core>=2.3",
"aiida_workgraph",
"cloudpickle",
"fastapi",
"uvicorn",
Expand Down
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest
from aiida_workgraph import WorkGraph

pytest_plugins = "aiida.tools.pytest_fixtures"


@pytest.fixture
def wg_calcfunction() -> WorkGraph:
"""A workgraph with calcfunction."""

wg = WorkGraph(name="test_debug_math")
sumdiff1 = wg.add_task("workgraph.test_sum_diff", "sumdiff1", x=2, y=3)
sumdiff2 = wg.add_task("workgraph.test_sum_diff", "sumdiff2", x=4)
wg.add_link(sumdiff1.outputs[0], sumdiff2.inputs[1])
return wg

0 comments on commit f4e8140

Please sign in to comment.