docs: fix typo in directory name (tranjectory → trajectory) #110
Workflow file for this run
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] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| run: uv sync --all-extras --group dev --group test | |
| - name: Check formatting (black) | |
| run: uv run black --check --diff . | |
| - name: Check import sorting (isort) | |
| run: uv run isort --check-only --diff . | |
| - name: Type checking (mypy) | |
| run: uv run mypy . | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --all-extras --group test | |
| - name: Run tests with coverage | |
| run: | | |
| uv run pytest tests/ \ | |
| --color=yes \ | |
| --cov=fasteval \ | |
| --cov-report=term \ | |
| --cov-report=xml:coverage.xml \ | |
| --cov-fail-under=85 \ | |
| -v | |
| - name: Upload coverage | |
| if: matrix.python-version == '3.13' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage.xml | |
| test-plugins: | |
| name: Test Plugins | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - plugin: fasteval-langfuse | |
| module: fasteval_langfuse | |
| - plugin: fasteval-langgraph | |
| module: fasteval_langgraph | |
| - plugin: fasteval-observe | |
| module: fasteval_observe | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install core package | |
| run: uv sync --all-extras | |
| - name: Install plugin dependencies | |
| working-directory: plugins/${{ matrix.plugin }} | |
| run: uv sync --all-extras --group dev | |
| - name: Install coverage tools | |
| working-directory: plugins/${{ matrix.plugin }} | |
| run: uv pip install pytest-cov | |
| - name: Run plugin tests with coverage | |
| working-directory: plugins/${{ matrix.plugin }} | |
| run: | | |
| uv run pytest tests/ \ | |
| --color=yes \ | |
| --cov=${{ matrix.module }} \ | |
| --cov-report=term \ | |
| --cov-fail-under=85 \ | |
| -v |