-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (73 loc) · 2.15 KB
/
test.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Runs several tests when a pull request is created.
name: Test
on:
pull_request:
jobs:
spell-check:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
exclude: |
./CHANGELOG.md
alex: # Checks docs for inconsiderate writing.
name: runner / alex
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-alex@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
markdown-lint: # Lints the markdown code.
name: runner / remark-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check markdown code quality using remark-lint
uses: reviewdog/action-remark-lint@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
black: # Check python code format.
name: runner / black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-black@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning
flake8: # Lints python code.
name: runner / flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
cache-dependency-path: |
**/requirements.txt
**/requirements/dev_requirements.txt
- name: Install the ros_gazebo_gym dev dependencies
run: |
pip install -r requirements/dev_requirements.txt
- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
level: warning