Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #587

Merged
merged 13 commits into from
Jun 16, 2022
Merged

Update GitHub Actions #587

merged 13 commits into from
Jun 16, 2022

Conversation

juhoinkinen
Copy link
Member

@juhoinkinen juhoinkinen commented Apr 14, 2022

Upgrades GH Actions to latest versions, and pins the codecov and pypi-publish Actions commit hashes.

Upgrading codecov Action (from v1 to v3) necessitates generating the coverage report in xml format (apparently this applies to both v2 and v3).

Also makes the coverage report upload conditional: it is uploaded only by Python 3.8 test run. Until now, the report was uploaded three times (by Python 3.7, 3.8 and 3.9 runs). That may be the reason for weird coverage changes I have noticed (the coverage is different for different Python versions, and it is somewhat random which run finishes last, and I think the report by the last run overrides earlier ones).

Now I chose to upload the report by Python 3.8 run. This evens out the the running times (very slightly). This means the test coverage of NN ensemble, Omikuji and Yake backends is not tracked, while of fastText and spaCy code it is.

Edit: Actually codecov merges the reports that are uploaded by different runs, so it is desired to upload all of them as previously.

@juhoinkinen juhoinkinen added this to the 0.58 milestone Apr 14, 2022
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #587 (d535751) into master (3e375d4) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #587   +/-   ##
=======================================
  Coverage   99.48%   99.48%           
=======================================
  Files          84       86    +2     
  Lines        5615     5645   +30     
=======================================
+ Hits         5586     5616   +30     
  Misses         29       29           
Impacted Files Coverage Δ
annif/analyzer/simplemma.py 100.00% <0.00%> (ø)
tests/test_analyzer_simplemma.py 100.00% <0.00%> (ø)
annif/analyzer/__init__.py 93.93% <0.00%> (+0.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e375d4...d535751. Read the comment docs.

@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@juhoinkinen juhoinkinen marked this pull request as ready for review April 14, 2022 14:45
Copy link
Member

@osma osma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sonarcloud
Copy link

sonarcloud bot commented May 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@juhoinkinen juhoinkinen merged commit ecf2f45 into master Jun 16, 2022
@juhoinkinen juhoinkinen deleted the upgrade-gh-actions branch June 16, 2022 13:44
juhoinkinen added a commit that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants