We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25597b9 commit 3117803Copy full SHA for 3117803
.exercises/mtc/run_mtc.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env bash
2
+
3
+set -euxo pipefail
4
5
+# This script runs the MTC example model with sharrow, mirroring the GitHub Actions workflow.
6
7
+cd $(dirname "$0")
8
9
+for repo in "driftlesslabs/activitysim" "ActivitySim/activitysim-prototype-mtc"; do
10
+ dir=$(basename "$repo")
11
+ if [ ! -d "$dir" ] || [ -z "$(ls -A "$dir" 2>/dev/null)" ]; then
12
+ gh repo clone "$repo" -- --depth 1
13
+ else
14
+ git -C "$dir" pull --ff-only || git -C "$dir" pull
15
+ fi
16
+done
17
18
+uv venv
19
+source .venv/bin/activate
20
+uv pip install -e ../.. # install sharrow in editable mode
21
+uv pip install ./activitysim
22
+uv pip install pytest nbmake
23
24
+cd activitysim-prototype-mtc
25
+python -m pytest ./test
0 commit comments