From a6d935c3b1089f10400bc11c3b0ff57b2acce669 Mon Sep 17 00:00:00 2001 From: Gus Hahn-Powell Date: Mon, 29 Apr 2024 23:53:34 -0700 Subject: [PATCH] Install project deps based on package.json --- .github/workflows/tests-and-docs.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests-and-docs.yml b/.github/workflows/tests-and-docs.yml index cbcc92a034..a860a35e72 100644 --- a/.github/workflows/tests-and-docs.yml +++ b/.github/workflows/tests-and-docs.yml @@ -78,13 +78,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v4 with: - node-version: 18 - - name: Setup NodeJS Dependencies - run: | - npm install express - npm install mathjax-node - npm install lodash - + node-version: 18 # Install dependencies - name: System-wide deps run: | @@ -151,11 +145,15 @@ jobs: cargo build --release --bin skema_service ./target/release/skema_service & echo "results for ${SKEMA_RS_HOST}:${SKEMA_RS_PORT}/version: `curl -s ${SKEMA_RS_HOST}:${SKEMA_RS_PORT}/version`" + - name: Install MathJax service deps + working-directory: ./skema/img2mml/data_generation + run: | + npm install - name: "Launch Mathjax in background for testing" working-directory: ./skema/img2mml/data_generation run: | npm start & - # NOTE: moved to runbefore the Python unit tests, so we can use the model coverage report results in testing + # NOTE: moved to run before the Python unit tests, so we can use the model coverage report results in testing - name: "Code2fn model coverage reports" run: python skema/program_analysis/model_coverage_report/model_coverage_report.py $GITHUB_WORKSPACE/docs/coverage/code2fn_coverage/ all