Add workflow CLI gap-closure tools #55
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pip install -e .[test,typecheck] | |
| - name: Validate gradual typing migration scope | |
| run: python scripts/check_typing_generics_scope.py | |
| - name: Run mypy (gradual scope) | |
| run: mypy | |
| - name: Run pyright (gradual scope) | |
| run: pyright | |
| - name: Run tests and keep summary log | |
| env: | |
| # 단계적 도입: 기준을 50 -> 60 -> 70으로 상향합니다. | |
| COVERAGE_FAIL_UNDER: 50 | |
| run: | | |
| pytest -v -ra --cov=hwpx --cov-report=term-missing --cov-fail-under=${COVERAGE_FAIL_UNDER} 2>&1 | tee pytest-summary.log | |
| - name: Upload pytest summary log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pytest-summary-${{ matrix.python-version }} | |
| path: pytest-summary.log |