|
| 1 | +# This is a basic workflow to help you get started with Actions |
| 2 | + |
| 3 | +name: MacOS_CI |
| 4 | + |
| 5 | +# Controls when the action will run. Triggers the workflow on push or pull request |
| 6 | +# events but only for the master branch |
| 7 | +on: [push, pull_request] |
| 8 | + |
| 9 | +jobs: |
| 10 | + build: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + python-version: [ '3.8' ] |
| 15 | + name: Python ${{ matrix.python-version }} CI |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + - run: git fetch --prune --unshallow |
| 19 | + |
| 20 | + - name: Setup python |
| 21 | + uses: actions/setup-python@v2 |
| 22 | + with: |
| 23 | + python-version: ${{ matrix.python-version }} |
| 24 | + |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip |
| 28 | + pip install -r requirements.txt |
| 29 | + - name: install coverage |
| 30 | + run: pip install coverage |
| 31 | + |
| 32 | + - name: install mypy |
| 33 | + run: pip install mypy |
| 34 | + |
| 35 | + - name: install pycodestyle |
| 36 | + run: pip install pycodestyle |
| 37 | + |
| 38 | + - name: mypy check |
| 39 | + run: | |
| 40 | + find AerialNavigation -name "*.py" | xargs mypy |
| 41 | + find ArmNavigation -name "*.py" | xargs mypy |
| 42 | + find Bipedal -name "*.py" | xargs mypy |
| 43 | + find InvertedPendulumCart -name "*.py" | xargs mypy |
| 44 | + find Localization -name "*.py" | xargs mypy |
| 45 | + find Mapping -name "*.py" | xargs mypy |
| 46 | + find PathPlanning -name "*.py" | xargs mypy |
| 47 | + find PathTracking -name "*.py" | xargs mypy |
| 48 | + find SLAM -name "*.py" | xargs mypy |
| 49 | +
|
| 50 | + - name: do diff style check |
| 51 | + run: bash rundiffstylecheck.sh |
| 52 | + |
| 53 | + - name: do all unit tests |
| 54 | + run: bash runtests.sh |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
0 commit comments