Skip to content

Merge pull request #414 from om-hu/master #101

Merge pull request #414 from om-hu/master

Merge pull request #414 from om-hu/master #101

Workflow file for this run

name: Test - Future
on:
push:
branches: [ future ]
jobs:
unittest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Checkout future branch
uses: actions/checkout@v2
with:
ref: future
path: robotics-toolbox-python
- name: Checkout Swift
uses: actions/checkout@v2
with:
ref: future
repository: jhavl/swift
path: swift
- name: Checkout Spatialmath
uses: actions/checkout@v2
with:
ref: future
repository: petercorke/spatialmath-python
path: sm
- name: Checkout Spatialgeometry
uses: actions/checkout@v2
with:
ref: future
repository: jhavl/spatialgeometry
path: sg
- name: Install dependencies
run: |
echo "Update pip"
python -m pip install --upgrade pip
pip install -U build
cd sm
echo "Install sm"
pip install .
cd ../sg
echo "Install sg"
pip install .
cd ../swift
echo "Install swift"
pip install .
cd ../robotics-toolbox-python/rtb-data
pip install .
- name: Test with pytest
run: |
cd robotics-toolbox-python
pip install -e .[dev,collision]
pip install pytest-timeout
python -c "import spatialgeometry"
python -c "import roboticstoolbox"
pytest --ignore=roboticstoolbox/blocks --timeout=50 --timeout_method thread -s