-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: build and test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
||
python-version: [ | ||
# "3.6", # TODO: Error: The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04. | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11" | ||
] | ||
click-version: [ | ||
"5.1", | ||
"6.7", | ||
"7.0", | ||
"7.1.2", | ||
"8.0.4", | ||
"8.1.3", | ||
] | ||
exclude: | ||
# click 8.1 drops support for py36 | ||
- python-version: "3.6" | ||
click-version: "8.1.3" | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install click==${{ matrix.click-version }} | ||
python setup.py install | ||
- name: Verify click version | ||
run: pip freeze click | ||
- name: Run tests | ||
run: python -m unittest discover -v |
This file contains 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