Merge pull request #246 from Louden7/main #587
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 Coverage | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| click: [8.0.*, 8.1.*, 8.2.*] | |
| rich: [12.*, 13.*, 14.*] | |
| exclude: | |
| - python: "3.8" | |
| click: 8.2.* | |
| - python: "3.9" | |
| click: 8.2.* | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| activate-environment: true | |
| - name: Install dependencies | |
| run: | | |
| uv pip install ".[dev]" | |
| uv pip install --upgrade "click==$CLICK_VERSION" --prerelease=allow | |
| uv pip install --upgrade "rich==$RICH_VERSION" --prerelease=allow | |
| env: | |
| CLICK_VERSION: ${{ matrix.click }} | |
| RICH_VERSION: ${{ matrix.rich }} | |
| - name: Run tests | |
| run: pytest --cov --cov-report term |