diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 6bf16c9f0b2f..c7f1051ee72d 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -80,3 +80,27 @@ jobs: **/reports/**/* test_root/log/**/*.log *.log + + - name: Run quality tests + run: | + ruff check lms/djangoapps/ lms/envs/ lms/lib/ lms/tests.py \ + openedx/core/djangoapps/ openedx/core/djangolib/ openedx/core/lib/ openedx/core/tests/ \ + openedx/core/tests/ openedx/core/types/ openedx/features/ openedx/testing/ openedx/tests/ \ + cms common xmodule --preview + + + # This job aggregates test results. It's the required check for branch protection. + # https://github.com/marketplace/actions/alls-green#why + # https://github.com/orgs/community/discussions/33579 + success: + name: Ruff checks successful + if: always() + needs: + - run-ruff + runs-on: ubuntu-latest + steps: + - name: Decide whether the needed jobs succeeded or failed + # uses: re-actors/alls-green@v1.2.1 + uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe + with: + jobs: ${{ toJSON(needs) }}