From 32dfa826a11cc18e07981f9adc34f3e0bdc4d9cf Mon Sep 17 00:00:00 2001 From: jamshale Date: Fri, 10 Nov 2023 13:21:05 -0800 Subject: [PATCH] Check other steps Signed-off-by: jamshale --- .../workflows/pr-linting-and-unit-tests.yaml | 57 +++++++++---------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/.github/workflows/pr-linting-and-unit-tests.yaml b/.github/workflows/pr-linting-and-unit-tests.yaml index 31833ad68..b13f743f9 100644 --- a/.github/workflows/pr-linting-and-unit-tests.yaml +++ b/.github/workflows/pr-linting-and-unit-tests.yaml @@ -59,33 +59,30 @@ jobs: id: install-dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: | - - echo ${{ steps.changed-plugins.outputs.changed-plugins }} - - # for dir in ${{ steps.changed-plugins.changed-plugins }}; do - # cd $dir - # poetry install --no-interaction --no-root - # cd .. - # done - # #---------------------------------------------- - # # Lint plugins - # #---------------------------------------------- - # - name: Lint plugins - # id: lint-plugins - # run: | - # for dir in ${{ steps.changed-plugins.changed-plugins }}; do - # cd $dir - # poetry run ruff check . - # cd .. - # done - # #---------------------------------------------- - # # Unit tests - # #---------------------------------------------- - # - name: Unit test plugins - # id: unit-tests - # run: | - # for dir in ${{ steps.changed-plugins.changed-plugins }}; do - # cd $dir - # poetry run pytest - # cd .. - # done + for dir in ${{ steps.changed-plugins.outputs.changed-plugins }}; do + cd $dir + poetry install --no-interaction --no-root + cd .. + done + #---------------------------------------------- + # Lint plugins + #---------------------------------------------- + - name: Lint plugins + id: lint-plugins + run: | + for dir in ${{ steps.changed-plugins.outputs.changed-plugins }}; do + cd $dir + poetry run ruff check . + cd .. + done + #---------------------------------------------- + # Unit tests + #---------------------------------------------- + - name: Unit test plugins + id: unit-tests + run: | + for dir in ${{ steps.changed-plugins.outputs.changed-plugins }}; do + cd $dir + poetry run pytest + cd .. + done