chore: retarget colony-sdk-python links to TheColonyAI (#45) #69
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| # Install with the [async] extra so test_async_native.py can exercise | |
| # the full AsyncColonyClient stack via httpx.MockTransport. | |
| run: pip install -e ".[dev,async]" pytest-cov | |
| - name: Run tests with coverage | |
| if: matrix.python-version == '3.12' | |
| run: pytest tests/ --ignore=tests/test_integration.py --cov=langchain_colony --cov-report=xml --cov-report=term-missing -v | |
| - name: Run tests | |
| if: matrix.python-version != '3.12' | |
| run: pytest tests/ --ignore=tests/test_integration.py -v | |
| - name: Upload coverage to Codecov | |
| if: matrix.python-version == '3.12' | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: coverage.xml | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Lint | |
| run: ruff check src/ tests/ | |
| - name: Format check | |
| run: ruff format --check src/ tests/ |