Updates for click 8.2 #482
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 Coverage | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python: [3.7, 3.10, 3.12, 3.13] | |
click: [7.0.*, 7.1.*, 8.0.*, 8.1.*, 8.2.*] | |
rich: [12.*, 13.*] | |
exclude: | |
- python: 3.7 | |
click: 8.2.* | |
- python: 3.13 | |
click: 7.0.* | |
- python: 3.13 | |
click: 7.1.* | |
# Min version of click 8.2 is Python 3.10 | |
# We can skip 3.10 for all other versions of Click | |
- python: 3.10 | |
click: 7.0.* | |
- python: 3.10 | |
click: 7.1.* | |
- python: 3.10 | |
click: 8.0.* | |
- python: 3.10 | |
click: 8.1.* | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
if: matrix.python != '3.7' | |
run: | | |
pip install -U uv | |
uv pip install --system --editable ".[dev]" | |
uv pip install --system --upgrade "click==$CLICK_VERSION" --prerelease=allow | |
uv pip install --system --upgrade "rich==$RICH_VERSION" --prerelease=allow | |
env: | |
CLICK_VERSION: ${{ matrix.click }} | |
RICH_VERSION: ${{ matrix.rich }} | |
- name: Install dependencies (Python 3.7) | |
if: matrix.python == '3.7' | |
run: | | |
pip install --editable ".[dev]" | |
pip install --upgrade "click==$CLICK_VERSION" | |
pip install --upgrade "rich==$RICH_VERSION" | |
env: | |
CLICK_VERSION: ${{ matrix.click }} | |
RICH_VERSION: ${{ matrix.rich }} | |
- name: Run tests | |
run: pytest --cov --cov-report xml |