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