Skip to content

Commit

Permalink
Test continuously against Click and Cloup development version.
Browse files Browse the repository at this point in the history
Closes #525.
  • Loading branch information
kdeldycke committed May 10, 2023
1 parent 38ecd0e commit 566f376
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
import json
import os
from itertools import product
from itertools import combinations, product
from pathlib import Path
# See what each os came pre-installed with at:
Expand All @@ -53,17 +53,32 @@ jobs:
"3.11",
"3.12-dev",
}
# Safety check to ensure there is no overlap between the 2 sets.
assert not os_list.intersection(python_list)
click_list = {
"pinned",
"8.1.x",
"main",
}
cloup_list = {
"pinned",
"master",
}
sets = (os_list, python_list, click_list, cloup_list)
# Safety check to ensure there is no overlap between sets.
for set_1, set_2 in combinations(sets, 2):
assert not set_1.intersection(set_2)
# List of unstable criterions.
unstable = []
jobs = []
for os_id, python_version in product(os_list, python_list):
for os_id, python_version, click_version, cloup_version in product(*sets):
job = {
"os": os_id,
"python-version": python_version,
"click-version": click_version,
"cloup-version": cloup_version,
"state": "stable",
}
for criterion in unstable:
Expand Down Expand Up @@ -104,6 +119,16 @@ jobs:
python -m pip install --upgrade poetry
poetry install --no-interaction --no-ansi
- name: Install click@${{ matrix.click-version }}
if: matrix.click-version != 'pinned'
run: |
poetry add git+https://github.com/pallets/click.git#${{ matrix.click-version }}
- name: Install cloup@${{ matrix.cloup-version }}
if: matrix.cloup-version != 'pinned'
run: |
poetry add git+https://github.com/janluke/cloup.git#${{ matrix.cloup-version }}
- name: Tests
run: |
poetry run pytest
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This version is not released yet and is under active development.
- Populate the `Allowed in conf?` column in `--show-params` output if there is a `--config` option in the command.
- Print all modified loggers and their levels in `DEBUG` mode.
- Directly download in Pygments source code from GitHub to check for candidates for ANSI-coloring in unittests.
- Test continuously against Click and Cloup development version. Closes {issue}`525`.

## {gh}`4.0.0 (2023-05-08) <compare/v3.10.0...v4.0.0>`

Expand Down

0 comments on commit 566f376

Please sign in to comment.