From 1ef8a4103318fd5febbc7b3746413905866fad72 Mon Sep 17 00:00:00 2001 From: Omar Richardson Date: Tue, 10 Sep 2024 19:42:32 +0200 Subject: [PATCH] Fix node installation procedure --- .github/workflows/run-tests.yml | 6 +++--- tests/conftest.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0814631..d939234 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -27,13 +27,13 @@ jobs: run: | python -m pip install --upgrade pip pip install -e .[testing] - - name: Build SMART sandbox + - name: Install SMART sandbox run: | git clone https://github.com/smart-on-fhir/smart-launcher-v2.git cd smart-launcher-v2 - npm install + npm ci --omit=dev + npm run build env: - NODE_ENV: production PORT: 5555 - name: Run tests run: | diff --git a/tests/conftest.py b/tests/conftest.py index 7ec00ad..48fe091 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -23,6 +23,7 @@ def sandbox(): except requests.ConnectionError: pass time.sleep(1) # Wait for 1 second before retrying - + else: + raise requests.ConnectionError(f"Cannot connect to {url}") yield url a.kill()