Repository navigation
fix!: rename public agent #1
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install the package and development tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Check formatting | |
| run: ruff format --check . | |
| - name: Lint | |
| run: ruff check . | |
| - name: Check types | |
| run: ty check | |
| - name: Run unit tests | |
| run: timeout 300s pytest -m "not docker" | |
| - name: Build distributions | |
| run: python -m build | |
| - name: Check distribution metadata | |
| run: python -m twine check dist/* | |
| - name: Check the wheel in a clean environment | |
| run: | | |
| python -m venv /tmp/autoresearch-wheel-check | |
| /tmp/autoresearch-wheel-check/bin/pip install --no-deps dist/*.whl | |
| /tmp/autoresearch-wheel-check/bin/python -c "import harbor_autoresearch" |