File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 3030 shell : bash
3131 - name : Upload coverage to Codecov
3232 if : runner.os == 'Linux'
33- uses : codecov/codecov-action@v1.0.3
33+ uses : codecov/codecov-action@v3.1.2
3434 with :
3535 token : ${{secrets.CODECOV_TOKEN}}
3636 file : ./coverage.xml
Original file line number Diff line number Diff line change @@ -84,21 +84,18 @@ def generate_tree_from_commits(
8484 for commit in commits :
8585 commit_tag = get_commit_tag (commit , tags )
8686
87- if (
88- commit_tag is not None
89- and commit_tag not in used_tags
90- and get_version (commit_tag ) is not None
91- and not (merge_prerelease and get_version (commit_tag ).is_prerelease )
92- ):
93- used_tags .append (commit_tag )
94- yield {
95- "version" : current_tag_name ,
96- "date" : current_tag_date ,
97- "changes" : changes ,
98- }
99- current_tag_name = commit_tag .name
100- current_tag_date = commit_tag .date
101- changes = defaultdict (list )
87+ if commit_tag is not None and commit_tag not in used_tags :
88+ version = get_version (commit_tag )
89+ if not (merge_prerelease and version .is_prerelease ):
90+ used_tags .append (commit_tag )
91+ yield {
92+ "version" : current_tag_name ,
93+ "date" : current_tag_date ,
94+ "changes" : changes ,
95+ }
96+ current_tag_name = commit_tag .name
97+ current_tag_date = commit_tag .date
98+ changes = defaultdict (list )
10299
103100 matches = pat .match (commit .message )
104101 if not matches :
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ ipython = "^7.2"
6666pytest = " ^7.0.0"
6767pytest-cov = " ^2.6"
6868pytest-mock = " ^2.0"
69- codecov = " ^2.0"
7069pytest-regressions = " ^2.4.0"
7170pytest-freezer = " ^0.4.6"
7271# code formatter
You can’t perform that action at this time.
0 commit comments