Skip to content

Commit 72ac370

Browse files
committed
chore: update workflows
1 parent ae351f0 commit 72ac370

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

.github/workflows/cpp_format.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Linters
2+
3+
on: pull_request
4+
5+
jobs:
6+
format:
7+
name: C++ Formatting
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-python@v2
12+
- run: wget https://raw.githubusercontent.com/machines-in-motion/mpi_cmake_modules/master/scripts/run-clang-format
13+
- run: wget https://raw.githubusercontent.com/machines-in-motion/mpi_cmake_modules/master/resources/_clang-format
14+
- run: python ./run-clang-format -r .

.github/workflows/git_fixup.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Git Checks
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
block-fixup:
7+
runs-on: ubuntu-18.04
8+
9+
steps:
10+
- uses: actions/checkout@v2.0.0
11+
- name: Block Fixup Commit Merge
12+
uses: 13rac1/block-fixup-merge-action@v2.0.0

.github/workflows/python_black.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Linters
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
black:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v2
11+
- uses: psf/black@stable

.github/workflows/todo_check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: TODO checks
2+
3+
on: pull_request
4+
5+
jobs:
6+
fixmes:
7+
name: New FIXMEs
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- run: git fetch origin ${GITHUB_BASE_REF}
12+
- name: Check for FIXMEs
13+
uses: luator/github_action_check_new_todos@v1
14+
with:
15+
label: FIXME
16+
base_ref: origin/${{ github.base_ref }}
17+
18+
todos:
19+
name: New TODOs
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- run: git fetch origin ${GITHUB_BASE_REF}
24+
- name: Check for TODOs
25+
uses: luator/github_action_check_new_todos@v1
26+
with:
27+
label: TODO
28+
base_ref: origin/${{ github.base_ref }}

0 commit comments

Comments
 (0)