fix bug #9
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 | |
| # We add numpy here to ensure it's locked early | |
| channels: opensim-org,conda-forge,defaults | |
| - name: Install opensim and compatible numpy | |
| run: | | |
| # Explicitly force numpy 1.x during the conda install | |
| conda install opensim "numpy<2" -y | |
| - name: Install library with uv | |
| run: | | |
| pip install uv | |
| # Use --no-deps to prevent uv from trying to "upgrade" numpy again | |
| uv pip install --no-deps . | |
| - 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 |