forked from stack-of-tasks/pinocchio
-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (56 loc) · 1.78 KB
/
wheel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Test Wheel packaging
on: ["push", "pull_request"]
env:
CMEEL_JOBS: 1
CMEEL_LOG_LEVEL: 'DEBUG'
CMEEL_TEST_JOBS: 1
jobs:
build:
name: "Build python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: setup
run: |
python -m pip install -U pip
python -m pip install wheel
- name: build cmeel wheel
run: python -m pip wheel -vw wh .
- uses: actions/upload-artifact@v3
with:
path: wh
test:
needs: ["build"]
name: "Test ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/download-artifact@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: setup
run: |
python -m pip install -U pip
python -m pip install wheel simple503
python -m simple503 --sort --base-url "${{ github.workspace }}/artifact" artifact
- name: install wheel
run: python -m pip install -i "file:///${{ github.workspace }}/artifact" pin
- name: test
run: >
python -c "import pinocchio;
assert str(pinocchio.SE3.Identity().inverse()) == ' R =\n1 0 0\n0 1 0\n0 0 1\n p = -0 -0 -0\n'"
env:
PYTHONWARNINGS: error