Update dependency types-requests to v2.33.0.20260408 #15
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: Unit Tests | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| UV_CACHE_DIR: /tmp/.uv-cache | |
| HF_HOME: /tmp/.cache/huggingface | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Cache uv dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.UV_CACHE_DIR }} | |
| key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} | |
| restore-keys: | | |
| uv-${{ runner.os }}- | |
| - name: Cache HuggingFace models | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.HF_HOME }} | |
| key: hf-models-${{ runner.os }}-all-mpnet-base-v2 | |
| restore-keys: | | |
| hf-models-${{ runner.os }}- | |
| - name: Setup development environment | |
| run: make setup | |
| # TODO: Enable linters once pre-existing issues are fixed | |
| # - name: Run linters | |
| # run: make verify | |
| # TODO: Enable type checker once issues are fixed | |
| # - name: Run type checker | |
| # run: make check-types | |
| - name: Run unit tests | |
| run: make unit-test | |
| - name: Upload test artifacts (on failure) | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-logs | |
| path: | | |
| .pytest_cache/ | |
| retention-days: 3 | |
| - name: Summary | |
| if: always() | |
| env: | |
| BRANCH_NAME: ${{ github.ref_name }} | |
| JOB_STATUS: ${{ job.status }} | |
| run: | | |
| echo "## Test Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Python Version**: 3.12" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Branch**: ${BRANCH_NAME}" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ "${JOB_STATUS}" == "success" ]; then | |
| echo "✅ All tests passed!" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "❌ Some tests failed. Check the logs above for details." >> $GITHUB_STEP_SUMMARY | |
| fi |