Skip to content

Insufficient test coverage and CI coverage for production validator #1

Insufficient test coverage and CI coverage for production validator

Insufficient test coverage and CI coverage for production validator #1

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: uv sync --extra dev
- name: Lint
run: uv run ruff check src/crusades/core/ src/crusades/storage/ src/crusades/api/ tests/
- name: Test with coverage
run: uv run pytest tests/ --cov=crusades.core --cov=crusades.storage --cov=crusades.api --cov-report=xml --cov-report=term -v
- name: Upload coverage
if: github.event_name == 'pull_request'
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 60