Skip to content

Deployment markdown. #28

Deployment markdown.

Deployment markdown. #28

Workflow file for this run

name: Tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.11', '3.12']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Install dependencies
run: uv sync --extra dev
- name: Lint with ruff
run: |
uv run ruff check agent cli tests
uv run ruff format --check agent cli tests
- name: Run unit tests
run: |
uv run pytest tests/unit/ -v \
--cov=agent --cov=cli \
--cov-report=xml \
--cov-report=term-missing
- name: Run integration tests
run: uv run pytest tests/integration/ -v -m integration
- name: Run CLI tests
run: uv run pytest tests/cli/ -v
- name: Upload coverage
uses: codecov/codecov-action@v4
continue-on-error: true
if: matrix.python-version == '3.12'
with:
file: ./coverage.xml
flags: unittests
name: py${{ matrix.python-version }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}