Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
This workflow is based on the one used in the ros-infrastructure org.
  • Loading branch information
cottsay committed Oct 17, 2022
1 parent d1e931f commit 0a5b676
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: osrf_pycommon-ci

on:
push:
branches: [master]
pull_request:

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.7', '3.8', '3.9', '3.10']
include:
- os: ubuntu-18.04
python: '3.6'
name: osrf_pycommon tests
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{matrix.python}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
- name: Install dependencies
run: |
python -m pip install -U -e .[test] pytest-cov
- name: Run tests
run: |
python -m pytest tests --cov

0 comments on commit 0a5b676

Please sign in to comment.