Add unit tests for treadmill qc #210
Workflow file for this run
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: test and build | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - '*' | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| if: github.event.pull_request.draft == false | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: [3.11, 3.12, 3.13] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: ruff check | |
| run: uv run ruff check . | |
| - name: ruff format | |
| run: uv run ruff format . | |
| - name: interrogate | |
| run: uv run interrogate | |
| - name: codespell | |
| run: uv run codespell --check-filenames | |
| - name: pytest | |
| run: uv run pytest --cov contraqctor | |
| - name: Build | |
| run: uv build |