fix bug #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| # This forces a compatible version of NumPy | |
| uv pip install "numpy<2" | |
| 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 |