From e744652999287372824f97610d407775a6251415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Fri, 17 Jul 2020 13:49:38 +0200 Subject: [PATCH] Run rules linter in master and PRs Add the rule linter to the CI GitHub action. A similar actions should be added to `capa-rules` as well. --- .github/workflows/tests.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3427cc0a..20e87422 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,3 +23,20 @@ jobs: - name: Lint with black run: black -l 120 --check . + rule_linter: + runs-on: ubuntu-latest + steps: + - name: Checkout capa with rules submodule + uses: actions/checkout@v2 + with: + submodules: true + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + # We don't need vivisect, so we can install capa using Python3 + - name: Install capa + run: pip install -e . + - name: Run rule linter + run: python scripts/lint.py rules/ +