Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
filiparag committed Dec 2, 2021
1 parent dd333fe commit e0ac3bf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
pull_request:
branches:
- main

env:
CI: 1
DEBIAN_FRONTEND: noninteractive

jobs:
py-linter:
name: Python code checker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare system
run: |
sudo -E apt-get update
sudo -E apt-get install -y flake8 python3-flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'py-linter'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
cpp-linter:
name: C and C++ code checker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: shenxianpeng/cpp-linter-action@master
id: linter
with:
files-changed-only: false
version: 12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e0ac3bf

Please sign in to comment.