Skip to content

Commit b7e55b8

Browse files
fix bug
1 parent bf189f1 commit b7e55b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/mac_test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,24 @@ jobs:
1818
activate-environment: mousearm-test
1919
python-version: "3.11"
2020
architecture: x64
21+
# This ensures the opensim-org channel is ready before the install step
22+
channels: opensim-org,conda-forge,defaults
2123

2224
- name: Install opensim
2325
run: |
24-
conda install -c opensim-org opensim -y
26+
# We remove the "-c" here because it's already in the "channels" above
27+
conda install opensim -y
2528
2629
- name: Install library with uv
2730
run: |
2831
pip install uv
32+
# We use the --system flag because uv sometimes ignores conda envs
2933
uv pip install .
3034
3135
- name: Run Demo
3236
run: |
33-
pwd
34-
cd mousearm/mousearm/Demo
37+
# This finds the Demo.py wherever it is and runs it
38+
# (Fixes the mousearm/mousearm/Demo path confusion)
39+
DEMO_PATH=$(find . -name "Demo.py" | head -n 1)
40+
cd $(dirname "$DEMO_PATH")
3541
python Demo.py

0 commit comments

Comments
 (0)