-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (46 loc) · 1.47 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Validate gazebodistro
on: [push, pull_request]
jobs:
nosetests:
name: Nosetests
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Fetch upstream (to enable diff)
run: |
git remote add unittest_upstream_comparision https://github.com/gazebo-tooling/gazebodistro.git || git remote set-url unittest_upstream_comparision https://github.com/gazebo-tooling/gazebodistro.git
git fetch --no-tags --depth=1 unittest_upstream_comparision master
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install PyYAML argparse
pip install nose coverage
pip install unidiff
pip install PyGithub
- name: Run Nose Tests
run: nosetests -s
yamllint:
name: Yaml Linting
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install yamllint
- name: Run yamllint
run: yamllint *.yaml