Skip to content

Commit 3607d72

Browse files
authored
Update official Python version to 3.8 (AtsushiSakai#329)
1 parent 2b00207 commit 3607d72

File tree

5 files changed

+78
-13
lines changed

5 files changed

+78
-13
lines changed
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python package
1+
name: Linux_CI
22

33
on: [push, pull_request]
44

@@ -7,14 +7,17 @@ jobs:
77

88
runs-on: ubuntu-latest
99
strategy:
10-
max-parallel: 4
1110
matrix:
12-
python-version: [3.7]
11+
python-version: ['3.8']
12+
13+
name: Python ${{ matrix.python-version }} CI
1314

1415
steps:
15-
- uses: actions/checkout@v1
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v1
16+
- uses: actions/checkout@v2
17+
- run: git fetch --prune --unshallow
18+
19+
- name: Setup python
20+
uses: actions/setup-python@v2
1821
with:
1922
python-version: ${{ matrix.python-version }}
2023
- name: Install dependencies

.github/workflows/MacOS_CI.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
- os: linux
66

77
python:
8-
- 3.7
8+
- 3.8
99

1010
before_install:
1111
- sudo apt-get update

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<img src="https://github.com/AtsushiSakai/PythonRobotics/raw/master/icon.png?raw=true" align="right" width="300" alt="header pic"/>
22

33
# PythonRobotics
4+
![GitHub_Action_Linux_CI](https://github.com/AtsushiSakai/PythonRobotics/workflows/Linux_CI/badge.svg)
5+
![GitHub_Action_MacOS_CI](https://github.com/AtsushiSakai/PythonRobotics/workflows/MacOS_CI/badge.svg)
46
[![Build Status](https://travis-ci.org/AtsushiSakai/PythonRobotics.svg?branch=master)](https://travis-ci.org/AtsushiSakai/PythonRobotics)
57
[![Documentation Status](https://readthedocs.org/projects/pythonrobotics/badge/?version=latest)](https://pythonrobotics.readthedocs.io/en/latest/?badge=latest)
68
[![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:
9092

9193
# Requirements
9294

93-
- Python 3.7.x (2.7 is not supported)
95+
- Python 3.8.x
9496

9597
- numpy
9698

appveyor.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
os: Visual Studio 2019
2+
13
environment:
24
global:
35
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
@@ -6,7 +8,8 @@ environment:
68
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
79

810
matrix:
9-
- MINICONDA: C:\Miniconda37-x64
11+
- MINICONDA: C:\Miniconda38-x64
12+
PYTHON_VERSION: "3.8"
1013

1114
init:
1215
- "ECHO %MINICONDA% %PYTHON_VERSION% %PYTHON_ARCH%"
@@ -24,13 +27,12 @@ install:
2427
- ECHO "Filesystem root:"
2528
- ps: "ls \"C:/\""
2629

27-
- ECHO "Installed SDKs:"
28-
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
29-
3030
# Prepend newly installed Python to the PATH of this build (this cannot be
3131
# done from inside the powershell script as it would require to restart
3232
# the parent CMD process).
33-
- "SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
33+
- SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%
34+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Library\bin;%PATH%
35+
- SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
3436
- conda config --set always_yes yes --set changeps1 no
3537
- conda update -q conda
3638
- conda info -a

0 commit comments

Comments
 (0)