Skip to content

fix: some small fixes, introduce optional deps #647

fix: some small fixes, introduce optional deps

fix: some small fixes, introduce optional deps #647

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_COLOR: "1"
UV_CONSTRAINT: "${{ github.workspace }}/.github/constraints.txt"
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
permissions:
id-token: write # for codecov oidc
strategy:
matrix:
include:
- { python: "3.12", feats: full }
- { python: "3.14", feats: min }
- { python: "3.14", feats: full }
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
filter: blob:none
persist-credentials: false
- uses: astral-sh/setup-uv@v8.2.0
with:
python-version: ${{ matrix.python }}
- run: uv tool install hatch
- run: hatch -v env create hatch-test.py${{ matrix.python }}-${{ matrix.feats }}
- run: hatch test --cover --python=${{ matrix.python }} -i feature-set=${{ matrix.feats }}
- run: hatch env run --env hatch-test.py${{ matrix.python }}-${{ matrix.feats }} -- coverage xml
- uses: codecov/codecov-action@v7
with:
files: coverage.xml
use_oidc: true
check:
if: always()
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}