Skip to content

fix bug

fix bug #7

Workflow file for this run

name: Mac Demo Test
on: [push, pull_request]
jobs:
test-mac:
runs-on: macos-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: mousearm-test
python-version: "3.11"
architecture: x64
# This ensures the opensim-org channel is ready before the install step
channels: opensim-org,conda-forge,defaults
- name: Install opensim
run: |
# We remove the "-c" here because it's already in the "channels" above
conda install opensim -y
- name: Install library with uv
run: |
pip install uv
# We use the --system flag because uv sometimes ignores conda envs
uv pip install .
- name: Run Demo
run: |
# 1. Find the directory containing Demo.py
DEMO_DIR=$(find . -type d -name "Demo" | head -n 1)
echo "Found Demo directory at: $DEMO_DIR"
# 2. Change into that directory
cd "$DEMO_DIR"
# 3. Run the script now that we are in the correct folder
python Demo.py