diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index 6730856..e908b49 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -66,10 +66,33 @@ jobs: run: | pip install -r ${{ steps.prepare-requirements.outputs.PROCESSED_REQUIREMENTS_FILE }} - - name: ๐Ÿ” Run Code Validation + - name: ๐Ÿ“ Code Formatting Check (Ruff) run: | - chmod +x validate.sh - ./validate.sh + echo "Checking code formatting..." + ruff format --check laborious/ tests/ + continue-on-error: false + + - name: ๐Ÿ”Ž Code Linting (Ruff) + run: | + echo "Running linting checks..." + ruff check laborious/ tests/ + continue-on-error: false + + - name: ๐Ÿท๏ธ Type Checking (mypy) + run: | + echo "Running type checks..." + mypy laborious/ + continue-on-error: true + + - name: ๐Ÿ”’ Security Analysis (Bandit) + run: | + echo "Running security analysis..." + bandit -r laborious/ -ll -q + continue-on-error: true + + - name: ๐Ÿงช Run Tests with Pytest + run: | + pytest tests --junitxml=pytest.xml --cov=laborious --cov-report=xml --cov-report=term - name: Run SonarQube Analysis uses: SonarSource/sonarqube-scan-action@v5