diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/Linux_CI.yml similarity index 82% rename from .github/workflows/pythonpackage.yml rename to .github/workflows/Linux_CI.yml index 7d1014ca..293c5621 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/Linux_CI.yml @@ -1,4 +1,4 @@ -name: Python package +name: Linux_CI on: [push, pull_request] @@ -7,14 +7,17 @@ jobs: runs-on: ubuntu-latest strategy: - max-parallel: 4 matrix: - python-version: [3.7] + python-version: ['3.8'] + + name: Python ${{ matrix.python-version }} CI steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + - uses: actions/checkout@v2 + - run: git fetch --prune --unshallow + + - name: Setup python + uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/MacOS_CI.yml b/.github/workflows/MacOS_CI.yml new file mode 100644 index 00000000..3a28347b --- /dev/null +++ b/.github/workflows/MacOS_CI.yml @@ -0,0 +1,58 @@ +# This is a basic workflow to help you get started with Actions + +name: MacOS_CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.8' ] + name: Python ${{ matrix.python-version }} CI + steps: + - uses: actions/checkout@v2 + - run: git fetch --prune --unshallow + + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: install coverage + run: pip install coverage + + - name: install mypy + run: pip install mypy + + - name: install pycodestyle + run: pip install pycodestyle + + - name: mypy check + run: | + find AerialNavigation -name "*.py" | xargs mypy + find ArmNavigation -name "*.py" | xargs mypy + find Bipedal -name "*.py" | xargs mypy + find InvertedPendulumCart -name "*.py" | xargs mypy + find Localization -name "*.py" | xargs mypy + find Mapping -name "*.py" | xargs mypy + find PathPlanning -name "*.py" | xargs mypy + find PathTracking -name "*.py" | xargs mypy + find SLAM -name "*.py" | xargs mypy + + - name: do diff style check + run: bash rundiffstylecheck.sh + + - name: do all unit tests + run: bash runtests.sh + + + + diff --git a/.travis.yml b/.travis.yml index 042c69ee..da82e606 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ matrix: - os: linux python: - - 3.7 + - 3.8 before_install: - sudo apt-get update diff --git a/README.md b/README.md index aa9a47ca..4a64f536 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ header pic # PythonRobotics +![GitHub_Action_Linux_CI](https://github.com/AtsushiSakai/PythonRobotics/workflows/Linux_CI/badge.svg) +![GitHub_Action_MacOS_CI](https://github.com/AtsushiSakai/PythonRobotics/workflows/MacOS_CI/badge.svg) [![Build Status](https://travis-ci.org/AtsushiSakai/PythonRobotics.svg?branch=master)](https://travis-ci.org/AtsushiSakai/PythonRobotics) [![Documentation Status](https://readthedocs.org/projects/pythonrobotics/badge/?version=latest)](https://pythonrobotics.readthedocs.io/en/latest/?badge=latest) [![Build status](https://ci.appveyor.com/api/projects/status/sb279kxuv1be391g?svg=true)](https://ci.appveyor.com/project/AtsushiSakai/pythonrobotics) @@ -90,7 +92,7 @@ See this paper for more details: # Requirements -- Python 3.7.x (2.7 is not supported) +- Python 3.8.x - numpy diff --git a/appveyor.yml b/appveyor.yml index 33d4d029..f34bcb2b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,5 @@ +os: Visual Studio 2019 + environment: global: # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the @@ -6,7 +8,8 @@ environment: CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" matrix: - - MINICONDA: C:\Miniconda37-x64 + - MINICONDA: C:\Miniconda38-x64 + PYTHON_VERSION: "3.8" init: - "ECHO %MINICONDA% %PYTHON_VERSION% %PYTHON_ARCH%" @@ -24,13 +27,12 @@ install: - ECHO "Filesystem root:" - ps: "ls \"C:/\"" - - ECHO "Installed SDKs:" - - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" - # Prepend newly installed Python to the PATH of this build (this cannot be # done from inside the powershell script as it would require to restart # the parent CMD process). - - "SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%" + - SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH% + - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Library\bin;%PATH% + - SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin - conda config --set always_yes yes --set changeps1 no - conda update -q conda - conda info -a