Skip to content

Commit 36b7617

Browse files
authored
Merge pull request #456 from commitizen-tools/add-back-3.7-runner
ci(github-actions): add back 3.7 runner to pythonpackage
2 parents d6a1e23 + 65645e0 commit 36b7617

File tree

6 files changed

+36
-16
lines changed

6 files changed

+36
-16
lines changed

.github/workflows/pythonpackage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
python-check:
77
strategy:
88
matrix:
9-
python-version: [3.6, 3.8, 3.9]
9+
python-version: [3.6, 3.7, 3.8, 3.9]
1010
platform: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v2
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ classifiers = [
4444
]
4545

4646
[tool.poetry.dependencies]
47-
python = "^3.6.1"
47+
python = "^3.6.2"
4848
questionary = "^1.4.0"
4949
decli = "^0.5.2"
5050
colorama = "^0.4.1"
@@ -57,7 +57,7 @@ argcomplete = "^1.12.1"
5757

5858
[tool.poetry.dev-dependencies]
5959
ipython = "^7.2"
60-
black = "^19.3b0"
60+
black = "^21.12b0"
6161
pytest = "^5.0"
6262
flake8 = "^3.6"
6363
pytest-cov = "^2.6"

tests/commands/test_check_command.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ def test_check_conventional_commit_succeeds(mocker, capsys):
125125

126126

127127
@pytest.mark.parametrize(
128-
"commit_msg", ("feat!(lang): removed polish language", "no conventional commit",),
128+
"commit_msg",
129+
(
130+
"feat!(lang): removed polish language",
131+
"no conventional commit",
132+
),
129133
)
130134
def test_check_no_conventional_commit(commit_msg, config, mocker, tmpdir):
131135
with pytest.raises(InvalidCommitMessageError):

tests/test_bump_find_version.py

+11-7
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,20 @@ def test_generate_version(test_input, expected):
8282

8383

8484
@pytest.mark.parametrize(
85-
"test_input,expected", itertools.chain(local_versions),
85+
"test_input,expected",
86+
itertools.chain(local_versions),
8687
)
8788
def test_generate_version_local(test_input, expected):
8889
current_version = test_input[0]
8990
increment = test_input[1]
9091
prerelease = test_input[2]
9192
is_local_version = True
92-
assert generate_version(
93-
current_version,
94-
increment=increment,
95-
prerelease=prerelease,
96-
is_local_version=is_local_version,
97-
) == Version(expected)
93+
assert (
94+
generate_version(
95+
current_version,
96+
increment=increment,
97+
prerelease=prerelease,
98+
is_local_version=is_local_version,
99+
)
100+
== Version(expected)
101+
)

tests/test_cli.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_commitizen_excepthook(capsys):
7373
def test_commitizen_debug_excepthook(capsys):
7474
with pytest.raises(SystemExit) as excinfo:
7575
cli.commitizen_excepthook(
76-
NotAGitProjectError, NotAGitProjectError(), "", debug=True,
76+
NotAGitProjectError,
77+
NotAGitProjectError(),
78+
"",
79+
debug=True,
7780
)
7881

7982
assert excinfo.type == SystemExit

tests/test_cz_conventional_commits.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,18 @@ def test_info(config):
144144
@pytest.mark.parametrize(
145145
("commit_message", "expected_message"),
146146
[
147-
("test(test_scope): this is test msg", "this is test msg",),
148-
("test(test_scope)!: this is test msg", "this is test msg",),
149-
("test!(test_scope): this is test msg", "",),
147+
(
148+
"test(test_scope): this is test msg",
149+
"this is test msg",
150+
),
151+
(
152+
"test(test_scope)!: this is test msg",
153+
"this is test msg",
154+
),
155+
(
156+
"test!(test_scope): this is test msg",
157+
"",
158+
),
150159
],
151160
)
152161
def test_process_commit(commit_message, expected_message, config):

0 commit comments

Comments
 (0)