Skip to content

Add core streaming infrastructure (labels, state, resilience) #45

Add core streaming infrastructure (labels, state, resilience)

Add core streaming infrastructure (labels, state, resilience) #45

Workflow file for this run

name: Unit Tests
permissions:
contents: read
on:
push:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/unit-tests.yml'
pull_request:
branches: [ main ]
paths:
- 'src/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/unit-tests.yml'
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
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-groups
- name: Run unit tests
run: |
uv run pytest tests/unit/ -m "unit" -v --tb=short
- name: Run unit tests with coverage
run: |
uv run pytest tests/unit/ -m "unit" --cov=src/amp --cov-report=xml --cov-report=term-missing
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: always()
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false