name: CI run-name: CI on: push: branches: [main] paths: - '**.py' - 'pyproject.toml' pull_request: paths: - '**.py' - 'pyproject.toml' - '.github/workflows/**' workflow_dispatch: jobs: test: strategy: matrix: os: [ubuntu-latest, macos-14, windows-latest] python-version: ['3.12'] fail-fast: false runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Cache pip uses: actions/cache@v6 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} restore-keys: | ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install .[dev] - name: Run tests run: pytest tests/ -v --tb=short