Update official Python version to 3.8 (#329)

This commit is contained in:
Atsushi Sakai
2020-05-08 22:15:43 +09:00
committed by GitHub
parent 2b0020764b
commit 3607d72b60
5 changed files with 78 additions and 13 deletions

View File

@@ -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

58
.github/workflows/MacOS_CI.yml vendored Normal file
View File

@@ -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

View File

@@ -5,7 +5,7 @@ matrix:
- os: linux
python:
- 3.7
- 3.8
before_install:
- sudo apt-get update

View File

@@ -1,6 +1,8 @@
<img src="https://github.com/AtsushiSakai/PythonRobotics/raw/master/icon.png?raw=true" align="right" width="300" alt="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

View File

@@ -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