chore(deps-dev): pytest 지원 범위를 10 미만으로 확장 #10
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: Knowledge CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "fowoco-knowledge/**" | |
| - ".github/workflows/knowledge-ci.yml" | |
| - "pyproject.toml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "fowoco-knowledge/**" | |
| - ".github/workflows/knowledge-ci.yml" | |
| - "pyproject.toml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: fowoco-knowledge/pyproject.toml | |
| - name: Install package | |
| run: python -m pip install -e "./fowoco-knowledge[dev]" | |
| - name: Lint and format check | |
| run: | | |
| python -m ruff format --check fowoco-knowledge/src fowoco-knowledge/tests | |
| python -m ruff check fowoco-knowledge/src fowoco-knowledge/tests | |
| - name: Validate context pack | |
| run: python -m fowoco_knowledge validate | |
| - name: Run tests | |
| run: python -m pytest fowoco-knowledge/tests --cov=fowoco_knowledge --cov-report=term |