Skip to content

Commit 73f5c6f

Browse files
committed
Add tests for many Click versions #2713
Following a commoncode update this adds tests for running scancode on all supported Click versions. Reference: aboutcode-org/commoncode#31 Reference: #2713 Reported-by: Thomas Druez <tdruez@nexb.com> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 2b487b7 commit 73f5c6f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
bin/pytest -n 3 -vvs --test-suite=all \
9191
tests/licensedcode/test_zzzz_cache.py
9292
93+
9394
- template: etc/ci/azure-posix.yml
9495
parameters:
9596
job_name: mac1014
@@ -159,6 +160,22 @@ jobs:
159160
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
160161

161162

163+
################################################################################
164+
# Test using many version of Click to work around regressions in API
165+
################################################################################
166+
167+
168+
- template: etc/ci/azure-posix.yml
169+
parameters:
170+
job_name: ubuntu20_test_all_supported_click_versions
171+
image_name: ubuntu-20.04
172+
python_versions: ['3.6', '3.7', '3.8', '3.9']
173+
python_architecture: x64
174+
test_suites:
175+
click_versions: for clk_ver in 8.0.1 7.1.2 7.1.1 7.1 6.7; do pip install click==$clk_ver; scancode -i samples/ -n3 --json foo.json; scancode -i --verbose samples/ -n3 --json foo.json; done
176+
177+
178+
162179
################################################################################
163180
# These jobs are using containers and their own Python 3.6
164181
################################################################################

0 commit comments

Comments
 (0)