Fix the lint rule issues regarding D400 and D103 #711
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Services Unit Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'services/**' | |
| - '.github/workflows/service-unit-tests.yml' | |
| branches: | |
| - main | |
| - 'release-*' | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04-ppc64le | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: IBM/setup-python-pz@291287e36d7c893a50c857d8bc014d67edd58ada | |
| with: | |
| python-version: '3.12' | |
| - name: Install test dependencies | |
| run: | | |
| pip install -r services/requirements-test.txt \ | |
| --extra-index-url https://wheels.developerfirst.ibm.com/ppc64le/linux \ | |
| --prefer-binary | |
| - name: Run all service tests | |
| run: | | |
| # Set PYTHONPATH to include services directory for common module imports | |
| export PYTHONPATH="${PYTHONPATH}:$(pwd)" | |
| pytest common/tests/ digitize/tests/ chatbot/tests/ summarize/tests/ similarity/tests/ extract/tests/ \ | |
| --cov=. \ | |
| --cov-report=html:htmlcov \ | |
| --cov-report=term-missing \ | |
| --cov-report=xml \ | |
| --cov-branch \ | |
| -v | |
| working-directory: services |