Skip to content

Commit

Permalink
Merge pull request #288 from ros-infrastructure/add-github-actions-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearsandwich authored Oct 29, 2021
2 parents 4105ad8 + 1fa1d40 commit cb6c424
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 25 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit cb6c424

Please sign in to comment.