Skip to content

chore: retarget colony-sdk-python links to TheColonyAI (#45) #69

chore: retarget colony-sdk-python links to TheColonyAI (#45)

chore: retarget colony-sdk-python links to TheColonyAI (#45) #69

Workflow file for this run

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/