|
| 1 | +name: build |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ future ] |
| 6 | + |
| 7 | +jobs: |
| 8 | + unittest: |
| 9 | + |
| 10 | + runs-on: ${{ matrix.os }} |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + os: [windows-latest, ubuntu-latest, macos-latest] |
| 14 | + python-version: [3.6, 3.7, 3.8, 3.9] |
| 15 | + |
| 16 | + steps: |
| 17 | + - name: Set up Python ${{ matrix.python-version }} |
| 18 | + uses: actions/setup-python@v1 |
| 19 | + with: |
| 20 | + python-version: ${{ matrix.python-version }} |
| 21 | + |
| 22 | + - name: Checkout future branch |
| 23 | + uses: actions/checkout@v2 |
| 24 | + with: |
| 25 | + ref: future |
| 26 | + path: rtb |
| 27 | + |
| 28 | + - name: Checkout Swift |
| 29 | + uses: actions/checkout@v2 |
| 30 | + with: |
| 31 | + repository: jhavl/swift |
| 32 | + path: swift |
| 33 | + |
| 34 | + - name: Checkout Spatialmath |
| 35 | + uses: actions/checkout@v2 |
| 36 | + with: |
| 37 | + repository: petercorke/spatialmath-python |
| 38 | + path: sm |
| 39 | + |
| 40 | + - name: Checkout Spatialgeometry |
| 41 | + uses: actions/checkout@v2 |
| 42 | + with: |
| 43 | + repository: jhavl/spatialgeometry |
| 44 | + path: sg |
| 45 | + |
| 46 | + - name: Install dependencies |
| 47 | + run: | |
| 48 | + cd sm |
| 49 | + python -m pip install . |
| 50 | + cd ../sg |
| 51 | + python -m pip install . |
| 52 | + cd ../swift |
| 53 | + python -m pip install . |
| 54 | + cd ../rtb |
| 55 | + python -m pip install --upgrade pip |
| 56 | + - name: Test with pytest |
| 57 | + run: | |
| 58 | + pip install .[dev,collision,vpython] |
| 59 | + pip install pytest-timeout |
| 60 | + pytest --timeout=50 --timeout_method thread -s |
0 commit comments