Skip to content

Commit

Permalink
Add static check with "avocado-static-checks"
Browse files Browse the repository at this point in the history
Adds a Python module import order check.

This is based on "avocado-static-checks", which is being added here as
a submodule.  The idea is to use the same checks in all
"avocado-framework" projects without having to maintain different
versions of the static check code/wrappers.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jan 30, 2024
1 parent 99d8df3 commit 8411e93
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/modules-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,20 @@ jobs:

- name: Run the ar module test
run: ./tests/test-module.py metadata/autils/archive/ar.yml

static-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: true

- name: Install requirements for the static checks
run: |
ls
ls static-checks
pip3 install -r static-checks/requirements.txt
- name: Runs the static check for import order
run: ./static-checks/check-import-order
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "avocado-static-checks"]
path = static-checks
url = ../avocado-static-checks
branch = main
1 change: 1 addition & 0 deletions static-checks
Submodule static-checks added at 183973

0 comments on commit 8411e93

Please sign in to comment.