Skip to content

Add tau 2 bench

Add tau 2 bench #94

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-core:
name: Core Tests (No Optional Deps)
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install core dependencies only
run: |
pip install uv
uv sync --group dev
- name: Run core tests
run: |
uv run pytest -m core -v
test-benchmark:
name: Benchmark Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install uv
uv sync --group dev
- name: Run benchmark tests
run: |
uv run pytest -m benchmark -v
test-all:
name: All Tests (With Optional Deps)
needs: [test-core, test-benchmark]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install all dependencies
run: |
pip install uv
uv sync --all-extras --group dev
- name: Run all tests
run: |
uv run pytest -v
coverage:
name: Coverage Report
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install uv
uv sync --all-extras --all-groups
- name: Run tests with coverage
run: |
uv run coverage run -m pytest
uv run coverage xml
uv run coverage html
uv run coverage report
- name: Coverage comment
if: github.event_name == 'pull_request'
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MINIMUM_GREEN: 85
MINIMUM_ORANGE: 70
- name: Store coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/