-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25bfddc
commit 9832d20
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# For documentation please refer to: | ||
# https://docs.github.com/en/free-pro-team@latest/actions | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
black-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Cache Tox | ||
uses: actions/cache@v2 | ||
with: | ||
path: $HOME/.cache/pip | ||
key: ${{ runner.os }}-tox | ||
- run: pip install tox>=3 | ||
- run: tox -e black-check | ||
clang-tidy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Snap | ||
uses: actions/cache@v2 | ||
with: | ||
path: /var/lib/snapd/ | ||
key: ${{ runner.os }}-snap | ||
- name: Install CMake 3.19 | ||
run: sudo snap install cmake --channel=3.19/stable --classic | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang-tools | ||
- run: cmake . | ||
- run: make clang-tidy | ||
clang-format-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache Snap | ||
uses: actions/cache@v2 | ||
with: | ||
path: /var/lib/snapd/ | ||
key: ${{ runner.os }}-snap | ||
- name: Install CMake 3.19 | ||
run: sudo snap install cmake --channel=3.19/stable --classic | ||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang-tools | ||
- run: cmake . | ||
- run: make clang-format-check |