Skip to content

test #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: code-style-check
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]

jobs:
clang-format:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -15,14 +15,13 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install cpplint

- name: Create code style diff
if: failure()
- name: Check code style
run: |
cpplint --recursive --exclude demos/thirdparty --linelength 120 demos/*
cpplint --recursive --exclude=demos/thirdparty --counting=detailed --linelength=120 demos/* 2>> code_style_errors.txt
working-directory: .

- uses: actions/upload-artifact@v2
if: failure()
with:
name: code_style_diff
path: code_style_diff.diff
name: code_style_errors
path: code_style_errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "models/detection_model.h"
#include <models/results.h>


class ModelYolo : public DetectionModel {
protected:
class Region {
Expand Down