From e202119403715bfe84ab2301736271decc76296d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnaro=CC=88k?= Date: Thu, 28 Oct 2021 12:17:54 -0700 Subject: [PATCH 1/3] Create GitHub Actions CI workflow based on travis job. Also removes defunct travis.yml config. --- .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 25 ------------------------- 2 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..1797bc34 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: superflore-ci + +on: + push: + branches: ['master'] + pull_request: + +jobs: + build: + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + python: [3.6, 3.7, 3.8, 3.9] + name: superflore tests + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{matrix.python}} + uses: actions/setup-python@v1 + with: + python-version: ${{matrix.python}} + - name: Install dependencies + run: | + echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/ros-latest.list + sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 + sudo apt-get update -qq + sudo apt-get install dpkg -y + sudo apt-get install -y python-rosdep + pip install -r requirements.txt + - name: Run tests + run: | + sudo rosdep init + rosdep update + python -m 'nose' --exclude test_pull --exclude test_run --exclude test_logger_output + python -m 'flake8' superflore --import-order-style=google + + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e91d8aa2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -dist: bionic -sudo: required -language: python -services: docker -python: - - "3.6" - - "3.7" - # PyPy versions - # TODO(allenh1): Re-enable pypy3 when available for ubuntu 18.04 - # - "pypy3" -before_install: - - sudo echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/ros-latest.list - - sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 - - sudo apt-get update -qq - - sudo apt-get install dpkg -y - - sudo apt-get install -y python-rosdep -# command to install dependencies -install: - - pip install -r requirements.txt -# command to run tests -script: - - sudo rosdep init - - rosdep update - - python -m 'nose' --exclude test_pull --exclude test_run --exclude test_logger_output - - python -m 'flake8' superflore --import-order-style=google From 2eeaa3c5a669e835da6eebcb33e97cba37e298c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnaro=CC=88k?= Date: Thu, 28 Oct 2021 17:03:56 -0700 Subject: [PATCH 2/3] Fetch GPG key from GitHub via https. --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1797bc34..c1d72fcc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,8 @@ jobs: - name: Install dependencies run: | echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/ros-latest.list - sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 + wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc -O /tmp/ros.asc + sudo apt-key add /tmp/ros.asc sudo apt-get update -qq sudo apt-get install dpkg -y sudo apt-get install -y python-rosdep From 1fa1d40ca40e4dc429c0ad742c33ce594c4a86cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnaro=CC=88k?= Date: Fri, 29 Oct 2021 12:27:16 -0700 Subject: [PATCH 3/3] Use python3-rosdep to provide the rosdep utility. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c1d72fcc..fba3e7c9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: sudo apt-key add /tmp/ros.asc sudo apt-get update -qq sudo apt-get install dpkg -y - sudo apt-get install -y python-rosdep + sudo apt-get install -y python3-rosdep pip install -r requirements.txt - name: Run tests run: |