Skip to content

Commit

Permalink
test: Adding check in GH.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed May 21, 2024
1 parent f4cd1fc commit dc6624e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit dc6624e

Please sign in to comment.