From a129a969656c52ad05bff65d073ca0fa0991d95a Mon Sep 17 00:00:00 2001 From: George Thomas Date: Thu, 9 Jan 2025 07:56:04 -0800 Subject: [PATCH] Add linter --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 193c7068..2b34ef95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,3 +21,24 @@ jobs: with: python-version: '3.9' use-cache: true + # this creates linter settings and uploads to an artifact so the configs can be pulled and used across jobs + LintConfig: + name: Get Lint Config + uses: uc-cdis/.github/.github/workflows/lint-create-config.yaml@master + with: + python-module-name: "gen3Dictionary" + RequiredLint: + name: Run Required Linters + needs: [ LintConfig ] + uses: uc-cdis/.github/.github/workflows/required_lint_check.yaml@master + with: + python-version: '3.9' + use-cache: true + InformationalLint: + name: Run Informational Linters + needs: [ LintConfig ] #TODO Add UnitTest + if: github.ref != 'refs/heads/main' + uses: uc-cdis/.github/.github/workflows/optional_lint_check.yaml@master + with: + python-version: '3.9' + use-cache: true \ No newline at end of file