First commit. #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package and test dependencies | |
| run: python -m pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest --cov=deblotch --cov-report=term-missing | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - name: Install package and development tools | |
| run: python -m pip install -e ".[dev]" | |
| - name: Lint | |
| run: ruff check . | |
| - name: Check formatting | |
| run: ruff format --check . | |
| - name: Check types | |
| run: mypy | |
| - name: Build distributions | |
| run: python -m build | |
| - name: Check distribution metadata | |
| run: python -m twine check dist/* | |
| - name: Install and smoke-test the wheel | |
| run: | | |
| python -m pip uninstall --yes deblotch | |
| python -m pip install --no-deps dist/*.whl | |
| cd "$(mktemp -d)" | |
| deblotch --help | |
| python -c "from deblotch import clean, clean_image; print('wheel import: ok')" |