Skip to content

Commit

Permalink
Changed order, hopefully works
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindlewis23 committed Jun 7, 2024
1 parent 91947ec commit 9aaf495
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
53 changes: 28 additions & 25 deletions .github/workflows/ik_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,30 @@ defaults:
run:
working-directory: ik_python
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
working-directory: ik_python
- name: Test wheels
run: |
python -m pip install --upgrade pip
python -m pip install ik_python/dist/*.whl
python -m pip install numpy
python ik_python/test/test.py
continue-on-error: false
linux:
needs: test
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
Expand Down Expand Up @@ -55,6 +78,7 @@ jobs:
name: wheels-linux-${{ matrix.platform.target }}
path: ik_python/dist
windows:
needs: test
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
Expand Down Expand Up @@ -83,6 +107,7 @@ jobs:
path: ik_python/dist

macos:
needs: test
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
Expand All @@ -103,13 +128,13 @@ jobs:
args: --release --out dist --find-interpreter
sccache: 'true'
working-directory: ik_python
- name: Upload wheels
uses: actions/upload-artifact@v4
-needs: test uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
path: ik_python/dist

sdist:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -124,33 +149,11 @@ jobs:
with:
name: wheels-sdist
path: ik_python/dist
test:
runs-on: ubuntu-latest
needs: [linux]
steps:
- uses: actions/download-artifact@v4
- name: Download wheels
uses: PyO3/maturin-action@v1
with:
working-directory: ik_python
- name: Test wheels
run: |
python -m pip install --upgrade pip
python -m pip install ik_python/dist/*.whl
python -m pip install numpy
python ik_python/test/test.py
continue-on-error: false
checkifcontinueworks:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Check if continue-on-error works
run: echo "This step should not run if the previous step fails"
release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [test]
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
Expand Down
2 changes: 1 addition & 1 deletion ik_python/ik_python.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Robot:
:param rotationMatrix: The rotation matrix to use for the inverse kinematics
:param positionVector: The position vector to use for the inverse kinematics
:return: A tuple containing the rotation values of each joint and whether the solution is least squares
"""
"""
...
def forward_kinematics(self, qVals) -> Tuple[List[List[float]], List[float]]:
"""
Expand Down

0 comments on commit 9aaf495

Please sign in to comment.