Skip to content

Commit

Permalink
add optimade in test
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Feb 3, 2024
1 parent 83b2327 commit c5a14fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
**/requirements*.txt
- name: Install package test dependencies
# Test test will actually happened in the container, here only need to install
# the pytest-docker dependency.
# To add the dependencies to the container, we need to add them to the
# installation command in the `test_notebooks/conftest.py`.
run: pip install -e .[dev]

- name: Set jupyter token env
Expand Down Expand Up @@ -133,7 +137,7 @@ jobs:
**/requirements*.txt
- name: Install package
run: pip install -e .[dev,smiles]
run: pip install -e .[dev,smiles,optimade]

- name: Run pytest
run: pytest -v tests --cov
Expand Down
2 changes: 1 addition & 1 deletion tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec):
aiidalab_exec("chmod -R a+rw /home/jovyan/apps/aiidalab-widgets-base", user="root")

# Install AWB with extra dependencies for SmilesWidget
aiidalab_exec("pip install --no-cache-dir .[smiles]")
aiidalab_exec("pip install --no-cache-dir .[smiles, optimade]")

# `port_for` takes a container port and returns the corresponding host port
port = docker_services.port_for("aiidalab", 8888)
Expand Down

0 comments on commit c5a14fa

Please sign in to comment.