diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..fba3e7c9 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,39 @@ +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 + 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 python3-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