Test opensim install (need conda env)

This commit is contained in:
David PAGNON 2024-06-30 15:57:15 +02:00 committed by GitHub
parent 21a5e7742b
commit 3338fe5c4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,18 +42,30 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: pose2sim
- name: Install OpenSim with conda
run: conda install -c opensim-org opensim-moco -y
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip conda run -n pose2sim python -m pip install --upgrade pip
python -m pip install flake8 pytest conda run -n pose2sim python -m pip install flake8 pytest
python -m pip install git+https://github.com/${{ github.repository }}.git@${{ github.sha }} conda run -n pose2sim python -m pip install git+https://github.com/${{ github.repository }}.git@${{ github.sha }}
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics conda run -n pose2sim flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics conda run -n pose2sim flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest - name: Test with pytest
run: | run: |
cd Pose2Sim/S00_Demo_BatchSession cd Pose2Sim/S00_Demo_BatchSession
pytest -v tests.py conda run -n pose2sim pytest -v tests.py