diff --git a/.github/workflows/modules-tests.yml b/.github/workflows/modules-tests.yml index ff00315..b505bee 100644 --- a/.github/workflows/modules-tests.yml +++ b/.github/workflows/modules-tests.yml @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1ceb9f9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "avocado-static-checks"] + path = static-checks + url = ../avocado-static-checks + branch = main diff --git a/static-checks b/static-checks new file mode 160000 index 0000000..183973b --- /dev/null +++ b/static-checks @@ -0,0 +1 @@ +Subproject commit 183973b4e51f64e7e509e33fa4dfbb3150b6e860