diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82b131f..8986f89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,15 @@ jobs: run: | python -m pip install -U pip pip install -e ".[dev]" - - name: Ruff + - name: Ruff check run: ruff check src tests - - name: Pytest - run: pytest -q + - name: Ruff format + run: ruff format --check src tests + - name: Pytest with coverage + run: pytest --cov=src --cov-report=xml --cov-report=term + - name: Upload coverage + if: ${{ matrix.python-version == '3.12' }} + uses: codecov/codecov-action@v5 + with: + file: ./coverage.xml + fail_ci_if_error: false