Skip to content

Update test_future.yml #109

Update test_future.yml

Update test_future.yml #109

Workflow file for this run

name: Test - Future
on:
push:
branches: [ future ]
jobs:
unittest:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-12]
python-version: [3.9, '3.10', '3.11', '3.12']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout future branch
uses: actions/checkout@v4
with:
ref: future
path: robotics-toolbox-python
- name: Checkout Swift
uses: actions/checkout@v4
with:
ref: future
repository: jhavl/swift
path: swift
- name: Checkout Spatialmath
uses: actions/checkout@v4
with:
ref: future
repository: petercorke/spatialmath-python
path: sm
- name: Checkout Spatialgeometry
uses: actions/checkout@v4
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: Specific numpy version for Ubuntu (pybullet dep)
if: runner.os == 'ubuntu-latest'
run: pip install numpy==1.26.4
- 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