Skip to content

Commit d2b7ba3

Browse files
authored
Merge pull request #29 from jamiesnape/cpplint-ci
Add CI using GitHub Actions
2 parents 97ac1c4 + fa4cb86 commit d2b7ba3

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- gh-pages
7+
8+
pull_request:
9+
branches:
10+
- gh-pages
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- run: pip install --disable-pip-version-check -r cpplint/requirements.txt
22+
- run: python cpplint/cpplint_unittest.py
23+
24+
strategy:
25+
matrix:
26+
os:
27+
- macos-latest
28+
- ubuntu-18.04
29+
python-version:
30+
- 2.7 # At least while upstream supports it and therefore we use six.
31+
- 3.6
32+
- 3.7
33+
- 3.8 # Homebrew will switch to this soon.
34+
exclude:
35+
- os: macos-latest
36+
python-version: 3.6
37+
- os: ubuntu-18.04
38+
python-version: 3.7
39+
- os: ubuntu-18.04
40+
python-version: 3.8
41+
42+
fail-fast: false

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
__pycache__/
2+
*.pyc
3+
14
# Generated by `preview_site_jekyll.py`
25
/_gems/
36
/Gemfile

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Drake Style Guide
22
=================
33

4+
![](https://github.com/RobotLocomotion/styleguide/workflows/CI/badge.svg?branch=gh-pages)
5+
46
This repository is a fork of Google's style guide. Drake's C++ style is a
57
small deviation from Google's, and approximately tracks Google's latest style
68
guidance at a small delay.

cpplint/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
six

0 commit comments

Comments
 (0)