Skip to content

Commit

Permalink
Install aiida-pseudos from repo to avoid download issue (#1028)
Browse files Browse the repository at this point in the history
Since `aiida-pseudo` need `aiida-core` > 2.6, however, we still want to support the previous aiida-core version, so in the image, we use the lastest aiida-pseudo to download the pseudos and install it. After the pseudos are installed, it can be used by the App. This is a temporary solution to install aiida-pseudos from repo to avoid downloading issues.
  • Loading branch information
superstar54 authored Dec 23, 2024
1 parent 52865b6 commit 523de13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ RUN wget -c -O hq.tar.gz https://github.com/It4innovations/hyperqueue/releases/d
tar xf hq.tar.gz -C /opt/conda/

ENV PSEUDO_FOLDER=/tmp/pseudo
# temporary solution to install aiida-pseudos from repo to avoid downloading issues
RUN --mount=from=uv,source=/uv,target=/bin/uv \
--mount=from=build_deps,source=${UV_CACHE_DIR},target=${UV_CACHE_DIR},rw \
uv pip install --system --strict --cache-dir=${UV_CACHE_DIR} \
"aiida-pseudo@git+https://github.com/aiidateam/aiida-pseudo"

RUN mkdir -p ${PSEUDO_FOLDER} && \
python -m aiidalab_qe download-pseudos --dest ${PSEUDO_FOLDER}

Expand Down
4 changes: 1 addition & 3 deletions tests_integration/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def test_qe_app_select_silicon_and_confirm(
element.click()

try:
driver.find_element(
By.XPATH, "//option[@value='Diamond (primitive cell)']"
).click()
driver.find_element(By.XPATH, "//option[@value='Diamond']").click()
time.sleep(10)
element = WebDriverWait(driver, 60).until(
EC.element_to_be_clickable((By.XPATH, "//button[text()='Confirm']"))
Expand Down

0 comments on commit 523de13

Please sign in to comment.