[ROS-O] fixup 6ac62fef5caba52cbfa71c093b242a1f0b5a1b88 #1074
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generated by `./generate_action_config.py noetic` | |
# jsk_travis | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: check_python3 | |
container: ubuntu:20.04 | |
steps: | |
- name: Install latest git to download .git directory in actions/checkout@v2, git diff requries .git directory ( use sudo for ros-ubuntu ) | |
run: apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git | |
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613 | |
run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
- name: Chcekout | |
uses: actions/checkout@v2 | |
- name: Check Python3 | |
run: | | |
apt update -q && apt install -y -q python3 git 2to3 | |
bash -c "ret=0; trap 'ret=1' ERR; python3 -m compileall .; 2to3 -w -f except -f execfile -f has_key -f raw_input -f zip -f xrange .; find . -type f -exec grep -Iq . {} \; -a -not -regex '.*/node_scripts/[^/]*py' -exec 2to3 -w -f import {} \; ; git diff --exit-code . > /dev/null; echo Exitting with \$ret; exit \$ret" |