diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 12d4a8f..1f28e89 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -74,7 +74,7 @@ jobs: run: sudo apt update && sudo apt install postgresql - name: Install Python dependencies - run: pip install -e .[dev] && reentry scan + run: pip install -e .[dev] - name: Run pytest run: pytest -sv tests diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 841d3c7..cbfd002 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,9 @@ jobs: run: sudo apt update && sudo apt install postgresql - name: Install Python package and dependencies - run: pip install -e .[dev] && reentry scan + run: pip install -e .[dev] - name: Run pytest + env: + AIIDA_WARN_v3: true run: pytest -sv tests diff --git a/pyproject.toml b/pyproject.toml index 2e11c00..217a158 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ classifiers = [ keywords = ['aiida', 'workflows'] requires-python = '>=3.8' dependencies = [ - 'aiida_core[atomic_tools]~=1.6', + 'aiida_core[atomic_tools]~=2.0', 'fuzzywuzzy~=0.18.0', ] @@ -46,3 +46,8 @@ profile = "black" line-length = 100 target-version = ['py38'] include = '\.pyi?$' + +[tool.pytest.ini_options] +filterwarnings = [ + 'ignore:Creating AiiDA configuration folder.*:UserWarning' +] diff --git a/tests/conftest.py b/tests/conftest.py index ff33bdb..eb8d9d4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -76,7 +76,9 @@ def factory( if inputs: for link_label, input_node in flatten_inputs(inputs): input_node.store() - node.add_incoming(input_node, link_type=LinkType.INPUT_CALC, link_label=link_label) + node.base.links.add_incoming( + input_node, link_type=LinkType.INPUT_CALC, link_label=link_label + ) node.store() @@ -84,7 +86,7 @@ def factory( retrieved = FolderData() retrieved.put_object_from_tree(filepath_retrieved) - retrieved.add_incoming(node, link_type=LinkType.CREATE, link_label="retrieved") + retrieved.base.links.add_incoming(node, link_type=LinkType.CREATE, link_label="retrieved") retrieved.store() if retrieve_temporary_list: