Skip to content

Commit 3f9c7f0

Browse files
authored
Use github actions for test matrix (#11)
* try github actions out * try click version matrix * Python 3.4+ * 3.8+ * add 3.7 * try 3.4 on 20.04 * 3.6 * try a different matrix * why wont this run * test actions again * add more versions * 8.1.4 is not relased yet * add more versions * iterate... * Add a py2 version * add more versions * update readme * Fix click-version typo
1 parent aab1c29 commit 3f9c7f0

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.github/workflows/build.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build and test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
12+
python-version: [
13+
# "3.6", # TODO: Error: The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04.
14+
"3.7",
15+
"3.8",
16+
"3.9",
17+
"3.10",
18+
"3.11"
19+
]
20+
click-version: [
21+
"5.1",
22+
"6.7",
23+
"7.0",
24+
"7.1.2",
25+
"8.0.4",
26+
"8.1.3",
27+
]
28+
exclude:
29+
# click 8.1 drops support for py36
30+
- python-version: "3.6"
31+
click-version: "8.1.3"
32+
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- name: Install package
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install click==${{ matrix.click-version }}
44+
python setup.py install
45+
- name: Verify click version
46+
run: pip freeze click
47+
- name: Run tests
48+
run: python -m unittest discover -v

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Installation
1010
pip install click-command-tree
1111
```
1212

13-
Tested against Python 3.4, 3.5, and 3.6 and click >= 5.0
13+
This is tested against Python versions 3.7 - 3.11 and (latest major release) click versions
14+
5.x, 6.x, 7.x, 7.1.x, 8.0.x, and 8.1.x.
15+
1416

1517
Example
1618
-------

0 commit comments

Comments
 (0)