-
Notifications
You must be signed in to change notification settings - Fork 467
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
Use gh action ci cd #404
Use gh action ci cd #404
Conversation
E203 needs to be ignore due to a false positive alert for slicing. See. PyCQA/pycodestyle#373 (comment)
and some minor fixes
for python runtime dependencies and used github-actions
quoting the addopts made them not being recognized properly
Here is a demo how the checks in a PR would look like with GH actions. And here is a demo of what the formatting could look like with yapf. |
Hey there @s-weigand great job! Sorry for being so late in answering: no time available in the recent past. |
Hi @s-weigand , At the moment, I've pushed it to "unstable" branch in order to complete all the final tests. Then if everything fine we'll move to beta, and then master, when a new version is released. Would you please take a look and confirm everything is fine? And, again, thank you very much for your outstanding work! 👍 |
Sorry for the massive PR, I recently also had to review a PR of this size and it gets quite unhandy. 😓 Anyway glad you like the changes 😄 |
I just ran the test suites
What do you think about me splitting this monster of a PR up to some smaller ones that are easier to review? 😄 Maybe leaving out the formatter for now, so you can have a look if |
I made a separate PR for changing the tests to pytest #438 , with that the amount of tests is in sync 😄 |
Hey there @s-weigand , I think you caught me wrong .. I've already merged all of this PR on branch "unstable" (which you first should pull from), so no need to re-do it in parts.. sorry for your additional work! :-/ At the moment I'm in the phase of integrating the old test structure with your new one, in order to remove test duplications and temporarily keep travis aligned (still to be completely removed as a next task). This given, there's still sth failing in the github actions build.. I'm going to investigate that too, but if you could help me in it, I would really appreciate :-) If I come to a fix I'll update you here, thx! 👍 |
@dr-prodigy in https://github.com/dr-prodigy/python-holidays/pull/404#issuecomment-782844414 I was talking about the "unstable". The problem with this PR is that it touched too many files (tests + I feel sorry for us both, having done extra work, just cause past me got a bit overexcited and wanted to do too many things in one PR 😓 |
About the error with github action build, this is due to a new release of coveralls which needs an extra flag to play nicely with gh-actions see dr-prodigy@8946f01 |
Hi @s-weigand at the moment in "unstable" you'll find a quite valid situation, successfully building, and with successfully merged tests, ie:
What is not clear to me is why the coverage is not 100% anymore:
Did you modify test classes code prior to moving to the new test class files? |
PS: before rolling back everything and re-applying fixes again, one by one (which I'm not sure I'll be able to process soon :-/ ), I'd like you to check this last version.. theoretically restoring the right tests should bring us back to 100% coverage. PPS: about formatting etc., I understand your point and agree, but at the moment I think we can live with that. But thank you for pointing it out. Pls let me know, thank you very much |
I didn't modify the test classes, but only copied them to different files. pytest results for #438, branch = true----------- coverage: platform win32, python 3.7.6-final-0 -----------
Name Stmts Miss Branch BrPart Cover
-------------------------------------------------------------------------------
__init__.py 0 0 0 0 100%
holidays\constants.py 3 0 0 0 100%
holidays\countries\__init__.py 70 0 0 0 100%
holidays\countries\angola.py 49 0 24 2 97%
holidays\countries\argentina.py 74 0 30 0 100%
holidays\countries\aruba.py 38 0 12 0 100%
holidays\countries\australia.py 162 0 120 1 99%
holidays\countries\austria.py 32 0 4 0 100%
holidays\countries\bangladesh.py 19 0 0 0 100%
holidays\countries\belarus.py 27 0 4 0 100%
holidays\countries\belgium.py 27 0 0 0 100%
holidays\countries\brazil.py 105 0 54 0 100%
holidays\countries\bulgaria.py 30 0 2 0 100%
holidays\countries\burundi.py 55 0 18 0 100%
holidays\countries\canada.py 152 0 114 4 98%
holidays\countries\chile.py 73 0 30 2 98%
holidays\countries\colombia.py 73 0 26 0 100%
holidays\countries\croatia.py 34 0 8 0 100%
holidays\countries\czechia.py 44 0 20 7 89%
holidays\countries\denmark.py 26 0 0 0 100%
holidays\countries\djibouti.py 39 0 10 0 100%
holidays\countries\dominican_republic.py 39 0 6 1 98%
holidays\countries\egypt.py 50 0 18 3 96%
holidays\countries\estonia.py 27 0 0 0 100%
holidays\countries\european_central_bank.py 21 0 0 0 100%
holidays\countries\finland.py 30 0 0 0 100%
holidays\countries\france.py 66 0 44 6 95%
holidays\countries\germany.py 57 0 32 0 100%
holidays\countries\greece.py 26 0 0 0 100%
holidays\countries\honduras.py 66 0 34 16 84%
holidays\countries\hongkong.py 184 0 74 1 99%
holidays\countries\hungary.py 57 0 34 0 100%
holidays\countries\iceland.py 30 0 0 0 100%
holidays\countries\india.py 63 0 38 2 98%
holidays\countries\ireland.py 49 0 24 1 99%
holidays\countries\israel.py 78 0 16 1 99%
holidays\countries\italy.py 109 0 84 0 100%
holidays\countries\japan.py 124 0 92 5 98%
holidays\countries\kenya.py 27 0 4 0 100%
holidays\countries\korea.py 116 0 34 2 99%
holidays\countries\latvia.py 32 0 8 4 90%
holidays\countries\lithuania.py 33 0 8 3 93%
holidays\countries\luxembourg.py 26 0 2 1 96%
holidays\countries\malawi.py 36 0 10 2 96%
holidays\countries\mexico.py 61 0 36 0 100%
holidays\countries\morocco.py 49 0 20 2 97%
holidays\countries\mozambique.py 36 0 10 2 96%
holidays\countries\netherlands.py 41 0 14 0 100%
holidays\countries\new_zealand.py 146 0 86 0 100%
holidays\countries\nicaragua.py 30 0 6 3 92%
holidays\countries\nigeria.py 19 0 0 0 100%
holidays\countries\norway.py 52 0 6 0 100%
holidays\countries\paraguay.py 59 0 22 0 100%
holidays\countries\peru.py 35 0 0 0 100%
holidays\countries\poland.py 37 0 8 4 91%
holidays\countries\portugal.py 42 0 2 1 98%
holidays\countries\romania.py 30 0 8 0 100%
holidays\countries\russia.py 28 0 2 0 100%
holidays\countries\saudi_arabia.py 62 0 32 0 100%
holidays\countries\serbia.py 40 0 8 0 100%
holidays\countries\singapore.py 115 0 46 1 99%
holidays\countries\slovakia.py 39 0 6 3 93%
holidays\countries\slovenia.py 32 0 6 1 97%
holidays\countries\south_africa.py 113 0 72 1 99%
holidays\countries\spain.py 86 0 58 0 100%
holidays\countries\sweden.py 65 0 14 0 100%
holidays\countries\switzerland.py 64 0 40 1 99%
holidays\countries\turkey.py 33 0 6 1 97%
holidays\countries\ukraine.py 65 0 44 2 98%
holidays\countries\united_arab_emirates.py 81 0 38 1 99%
holidays\countries\united_kingdom.py 144 0 90 3 99%
holidays\countries\united_states.py 336 0 288 1 99%
holidays\countries\vietnam.py 49 0 12 2 97%
holidays\holiday_base.py 163 0 88 0 100%
holidays\utils.py 19 0 8 0 100%
-------------------------------------------------------------------------------
TOTAL 4649 0 2114 93 99%
Coverage XML written to file coverage.xml
========================================= 587 passed in 58.79s ========================================= pytest results for `beta` branch = true----------- coverage: platform win32, python 3.7.6-final-0 -----------
Name Stmts Miss Branch BrPart Cover
-------------------------------------------------------------------------------
__init__.py 0 0 0 0 100%
holidays\constants.py 3 0 0 0 100%
holidays\countries\__init__.py 70 0 0 0 100%
holidays\countries\angola.py 49 0 24 2 97%
holidays\countries\argentina.py 74 0 30 0 100%
holidays\countries\aruba.py 38 0 12 0 100%
holidays\countries\australia.py 162 0 120 1 99%
holidays\countries\austria.py 32 0 4 0 100%
holidays\countries\bangladesh.py 19 0 0 0 100%
holidays\countries\belarus.py 27 0 4 0 100%
holidays\countries\belgium.py 27 0 0 0 100%
holidays\countries\brazil.py 105 0 54 0 100%
holidays\countries\bulgaria.py 30 0 2 0 100%
holidays\countries\burundi.py 55 0 18 0 100%
holidays\countries\canada.py 152 0 114 4 98%
holidays\countries\chile.py 73 0 30 2 98%
holidays\countries\colombia.py 73 0 26 0 100%
holidays\countries\croatia.py 34 0 8 0 100%
holidays\countries\czechia.py 44 0 20 7 89%
holidays\countries\denmark.py 26 0 0 0 100%
holidays\countries\djibouti.py 39 0 10 0 100%
holidays\countries\dominican_republic.py 39 0 6 1 98%
holidays\countries\egypt.py 50 0 18 3 96%
holidays\countries\estonia.py 27 0 0 0 100%
holidays\countries\european_central_bank.py 21 0 0 0 100%
holidays\countries\finland.py 30 0 0 0 100%
holidays\countries\france.py 66 0 44 6 95%
holidays\countries\germany.py 57 0 32 0 100%
holidays\countries\greece.py 26 0 0 0 100%
holidays\countries\honduras.py 66 0 34 16 84%
holidays\countries\hongkong.py 184 0 74 1 99%
holidays\countries\hungary.py 57 0 34 0 100%
holidays\countries\iceland.py 30 0 0 0 100%
holidays\countries\india.py 63 0 38 2 98%
holidays\countries\ireland.py 49 0 24 1 99%
holidays\countries\israel.py 78 0 16 1 99%
holidays\countries\italy.py 109 0 84 0 100%
holidays\countries\japan.py 124 0 92 5 98%
holidays\countries\kenya.py 27 0 4 0 100%
holidays\countries\korea.py 116 0 34 2 99%
holidays\countries\latvia.py 32 0 8 4 90%
holidays\countries\lithuania.py 33 0 8 3 93%
holidays\countries\luxembourg.py 26 0 2 1 96%
holidays\countries\malawi.py 36 0 10 2 96%
holidays\countries\mexico.py 61 0 36 0 100%
holidays\countries\morocco.py 49 0 20 2 97%
holidays\countries\mozambique.py 36 0 10 2 96%
holidays\countries\netherlands.py 41 0 14 0 100%
holidays\countries\new_zealand.py 146 0 86 0 100%
holidays\countries\nicaragua.py 30 0 6 3 92%
holidays\countries\nigeria.py 19 0 0 0 100%
holidays\countries\norway.py 52 0 6 0 100%
holidays\countries\paraguay.py 59 0 22 0 100%
holidays\countries\peru.py 35 0 0 0 100%
holidays\countries\poland.py 37 0 8 4 91%
holidays\countries\portugal.py 42 0 2 1 98%
holidays\countries\romania.py 30 0 8 0 100%
holidays\countries\russia.py 28 0 2 0 100%
holidays\countries\saudi_arabia.py 62 0 32 0 100%
holidays\countries\serbia.py 40 0 8 0 100%
holidays\countries\singapore.py 115 0 46 1 99%
holidays\countries\slovakia.py 39 0 6 3 93%
holidays\countries\slovenia.py 32 0 6 1 97%
holidays\countries\south_africa.py 113 0 72 1 99%
holidays\countries\spain.py 86 0 58 0 100%
holidays\countries\sweden.py 65 0 14 0 100%
holidays\countries\switzerland.py 64 0 40 1 99%
holidays\countries\turkey.py 33 0 6 1 97%
holidays\countries\ukraine.py 65 0 44 2 98%
holidays\countries\united_arab_emirates.py 81 0 38 1 99%
holidays\countries\united_kingdom.py 144 0 90 3 99%
holidays\countries\united_states.py 336 0 288 1 99%
holidays\countries\vietnam.py 49 0 12 2 97%
holidays\holiday_base.py 163 0 88 0 100%
holidays\utils.py 19 0 8 0 100%
tests.py 4841 0 968 23 99%
-------------------------------------------------------------------------------
TOTAL 9490 0 3082 116 99%
Coverage XML written to file coverage.xml
==================================== 587 passed in 63.91s (0:01:03) ==================================== For running The reason for the coverage on #438 and [tool.coverage.run]
branch = true I don't know about you, but I prefer an honest 99% (which is already pretty awesome and rare) over a shiny 100% which doesn't tell the whole truth. pytest results for `beta`, branch = false----------- coverage: platform win32, python 3.7.6-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------------------------------
__init__.py 0 0 100%
holidays\constants.py 3 0 100%
holidays\countries\__init__.py 70 0 100%
holidays\countries\angola.py 49 0 100%
holidays\countries\argentina.py 74 0 100%
holidays\countries\aruba.py 38 0 100%
holidays\countries\australia.py 162 0 100%
holidays\countries\austria.py 32 0 100%
holidays\countries\bangladesh.py 19 0 100%
holidays\countries\belarus.py 27 0 100%
holidays\countries\belgium.py 27 0 100%
holidays\countries\brazil.py 105 0 100%
holidays\countries\bulgaria.py 30 0 100%
holidays\countries\burundi.py 55 0 100%
holidays\countries\canada.py 152 0 100%
holidays\countries\chile.py 73 0 100%
holidays\countries\colombia.py 73 0 100%
holidays\countries\croatia.py 34 0 100%
holidays\countries\czechia.py 44 0 100%
holidays\countries\denmark.py 26 0 100%
holidays\countries\djibouti.py 39 0 100%
holidays\countries\dominican_republic.py 39 0 100%
holidays\countries\egypt.py 50 0 100%
holidays\countries\estonia.py 27 0 100%
holidays\countries\european_central_bank.py 21 0 100%
holidays\countries\finland.py 30 0 100%
holidays\countries\france.py 66 0 100%
holidays\countries\germany.py 57 0 100%
holidays\countries\greece.py 26 0 100%
holidays\countries\honduras.py 66 0 100%
holidays\countries\hongkong.py 184 0 100%
holidays\countries\hungary.py 57 0 100%
holidays\countries\iceland.py 30 0 100%
holidays\countries\india.py 63 0 100%
holidays\countries\ireland.py 49 0 100%
holidays\countries\israel.py 78 0 100%
holidays\countries\italy.py 109 0 100%
holidays\countries\japan.py 124 0 100%
holidays\countries\kenya.py 27 0 100%
holidays\countries\korea.py 116 0 100%
holidays\countries\latvia.py 32 0 100%
holidays\countries\lithuania.py 33 0 100%
holidays\countries\luxembourg.py 26 0 100%
holidays\countries\malawi.py 36 0 100%
holidays\countries\mexico.py 61 0 100%
holidays\countries\morocco.py 49 0 100%
holidays\countries\mozambique.py 36 0 100%
holidays\countries\netherlands.py 41 0 100%
holidays\countries\new_zealand.py 146 0 100%
holidays\countries\nicaragua.py 30 0 100%
holidays\countries\nigeria.py 19 0 100%
holidays\countries\norway.py 52 0 100%
holidays\countries\paraguay.py 59 0 100%
holidays\countries\peru.py 35 0 100%
holidays\countries\poland.py 37 0 100%
holidays\countries\portugal.py 42 0 100%
holidays\countries\romania.py 30 0 100%
holidays\countries\russia.py 28 0 100%
holidays\countries\saudi_arabia.py 62 0 100%
holidays\countries\serbia.py 40 0 100%
holidays\countries\singapore.py 115 0 100%
holidays\countries\slovakia.py 39 0 100%
holidays\countries\slovenia.py 32 0 100%
holidays\countries\south_africa.py 113 0 100%
holidays\countries\spain.py 86 0 100%
holidays\countries\sweden.py 65 0 100%
holidays\countries\switzerland.py 64 0 100%
holidays\countries\turkey.py 33 0 100%
holidays\countries\ukraine.py 65 0 100%
holidays\countries\united_arab_emirates.py 81 0 100%
holidays\countries\united_kingdom.py 144 0 100%
holidays\countries\united_states.py 336 0 100%
holidays\countries\vietnam.py 49 0 100%
holidays\holiday_base.py 163 0 100%
holidays\utils.py 19 0 100%
-----------------------------------------------------------------
TOTAL 4649 0 100%
Coverage XML written to file coverage.xml
========================================= 587 passed in 57.93s ========================================= pytest results for #438, branch = false----------- coverage: platform win32, python 3.7.6-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------------------------------
__init__.py 0 0 100%
holidays\constants.py 3 0 100%
holidays\countries\__init__.py 70 0 100%
holidays\countries\angola.py 49 0 100%
holidays\countries\argentina.py 74 0 100%
holidays\countries\aruba.py 38 0 100%
holidays\countries\australia.py 162 0 100%
holidays\countries\austria.py 32 0 100%
holidays\countries\bangladesh.py 19 0 100%
holidays\countries\belarus.py 27 0 100%
holidays\countries\belgium.py 27 0 100%
holidays\countries\brazil.py 105 0 100%
holidays\countries\bulgaria.py 30 0 100%
holidays\countries\burundi.py 55 0 100%
holidays\countries\canada.py 152 0 100%
holidays\countries\chile.py 73 0 100%
holidays\countries\colombia.py 73 0 100%
holidays\countries\croatia.py 34 0 100%
holidays\countries\czechia.py 44 0 100%
holidays\countries\denmark.py 26 0 100%
holidays\countries\djibouti.py 39 0 100%
holidays\countries\dominican_republic.py 39 0 100%
holidays\countries\egypt.py 50 0 100%
holidays\countries\estonia.py 27 0 100%
holidays\countries\european_central_bank.py 21 0 100%
holidays\countries\finland.py 30 0 100%
holidays\countries\france.py 66 0 100%
holidays\countries\germany.py 57 0 100%
holidays\countries\greece.py 26 0 100%
holidays\countries\honduras.py 66 0 100%
holidays\countries\hongkong.py 184 0 100%
holidays\countries\hungary.py 57 0 100%
holidays\countries\iceland.py 30 0 100%
holidays\countries\india.py 63 0 100%
holidays\countries\ireland.py 49 0 100%
holidays\countries\israel.py 78 0 100%
holidays\countries\italy.py 109 0 100%
holidays\countries\japan.py 124 0 100%
holidays\countries\kenya.py 27 0 100%
holidays\countries\korea.py 116 0 100%
holidays\countries\latvia.py 32 0 100%
holidays\countries\lithuania.py 33 0 100%
holidays\countries\luxembourg.py 26 0 100%
holidays\countries\malawi.py 36 0 100%
holidays\countries\mexico.py 61 0 100%
holidays\countries\morocco.py 49 0 100%
holidays\countries\mozambique.py 36 0 100%
holidays\countries\netherlands.py 41 0 100%
holidays\countries\new_zealand.py 146 0 100%
holidays\countries\nicaragua.py 30 0 100%
holidays\countries\nigeria.py 19 0 100%
holidays\countries\norway.py 52 0 100%
holidays\countries\paraguay.py 59 0 100%
holidays\countries\peru.py 35 0 100%
holidays\countries\poland.py 37 0 100%
holidays\countries\portugal.py 42 0 100%
holidays\countries\romania.py 30 0 100%
holidays\countries\russia.py 28 0 100%
holidays\countries\saudi_arabia.py 62 0 100%
holidays\countries\serbia.py 40 0 100%
holidays\countries\singapore.py 115 0 100%
holidays\countries\slovakia.py 39 0 100%
holidays\countries\slovenia.py 32 0 100%
holidays\countries\south_africa.py 113 0 100%
holidays\countries\spain.py 86 0 100%
holidays\countries\sweden.py 65 0 100%
holidays\countries\switzerland.py 64 0 100%
holidays\countries\turkey.py 33 0 100%
holidays\countries\ukraine.py 65 0 100%
holidays\countries\united_arab_emirates.py 81 0 100%
holidays\countries\united_kingdom.py 144 0 100%
holidays\countries\united_states.py 336 0 100%
holidays\countries\vietnam.py 49 0 100%
holidays\holiday_base.py 163 0 100%
holidays\utils.py 19 0 100%
-----------------------------------------------------------------
TOTAL 4649 0 100%
Coverage XML written to file coverage.xml
========================================= 587 passed in 57.93s ========================================= On pytest results for `unstable`, branch = false----------- coverage: platform win32, python 3.7.6-final-0 -----------
Name Stmts Miss Cover
-----------------------------------------------------------------
holidays\constants.py 3 0 100%
holidays\countries\__init__.py 70 0 100%
holidays\countries\angola.py 49 0 100%
holidays\countries\argentina.py 74 0 100%
holidays\countries\aruba.py 38 0 100%
holidays\countries\australia.py 162 0 100%
holidays\countries\austria.py 32 0 100%
holidays\countries\bangladesh.py 19 0 100%
holidays\countries\belarus.py 27 0 100%
holidays\countries\belgium.py 27 0 100%
holidays\countries\brazil.py 105 0 100%
holidays\countries\bulgaria.py 30 0 100%
holidays\countries\burundi.py 55 0 100%
holidays\countries\canada.py 152 0 100%
holidays\countries\chile.py 73 0 100%
holidays\countries\colombia.py 73 0 100%
holidays\countries\croatia.py 34 0 100%
holidays\countries\czechia.py 44 0 100%
holidays\countries\denmark.py 26 0 100%
holidays\countries\djibouti.py 39 0 100%
holidays\countries\dominican_republic.py 39 0 100%
holidays\countries\egypt.py 50 0 100%
holidays\countries\estonia.py 27 0 100%
holidays\countries\european_central_bank.py 21 0 100%
holidays\countries\finland.py 30 0 100%
holidays\countries\france.py 66 0 100%
holidays\countries\germany.py 57 0 100%
holidays\countries\greece.py 26 0 100%
holidays\countries\honduras.py 66 0 100%
holidays\countries\hongkong.py 184 0 100%
holidays\countries\hungary.py 57 0 100%
holidays\countries\iceland.py 30 0 100%
holidays\countries\india.py 63 0 100%
holidays\countries\ireland.py 49 5 90%
holidays\countries\israel.py 78 0 100%
holidays\countries\italy.py 109 0 100%
holidays\countries\japan.py 124 0 100%
holidays\countries\kenya.py 27 0 100%
holidays\countries\korea.py 116 0 100%
holidays\countries\latvia.py 32 0 100%
holidays\countries\lithuania.py 33 0 100%
holidays\countries\luxembourg.py 26 0 100%
holidays\countries\malawi.py 36 0 100%
holidays\countries\mexico.py 61 0 100%
holidays\countries\morocco.py 49 0 100%
holidays\countries\mozambique.py 36 23 36%
holidays\countries\netherlands.py 41 0 100%
holidays\countries\new_zealand.py 146 0 100%
holidays\countries\nicaragua.py 30 0 100%
holidays\countries\nigeria.py 19 0 100%
holidays\countries\norway.py 52 0 100%
holidays\countries\paraguay.py 59 0 100%
holidays\countries\peru.py 35 0 100%
holidays\countries\poland.py 37 0 100%
holidays\countries\portugal.py 42 0 100%
holidays\countries\romania.py 30 0 100%
holidays\countries\russia.py 28 0 100%
holidays\countries\saudi_arabia.py 62 48 23%
holidays\countries\serbia.py 40 0 100%
holidays\countries\singapore.py 115 0 100%
holidays\countries\slovakia.py 39 0 100%
holidays\countries\slovenia.py 32 0 100%
holidays\countries\south_africa.py 113 0 100%
holidays\countries\spain.py 86 0 100%
holidays\countries\sweden.py 65 0 100%
holidays\countries\switzerland.py 64 0 100%
holidays\countries\turkey.py 33 0 100%
holidays\countries\ukraine.py 65 0 100%
holidays\countries\united_arab_emirates.py 81 0 100%
holidays\countries\united_kingdom.py 174 3 98%
holidays\countries\united_states.py 336 0 100%
holidays\countries\vietnam.py 49 0 100%
holidays\holiday_base.py 163 0 100%
holidays\utils.py 26 6 77%
-----------------------------------------------------------------
TOTAL 4686 85 98%
Coverage XML written to file coverage.xml
========================================= 574 passed in 58.68s ========================================= So in the best case, there are only some tests missing on Some sidenotes on the commits on
|
Hi @s-weigand thank you! Some more work done..
Okay all clear.. having put a lot of effort in the last days to sort out everything, I finally decided to preserve what done, to re-apply the test changes still missing, and configured pytest to crawl all tests starting from tests.py , as it used to be on coverage.
Although I'm not very happy to lose my 100% badge :-) (btw, no cheating, it only went unnoticed in fact.. due to coverage behaving differently) it makes sense and I agree.. we'll see if we can get back to a "real" 100% in a future.
I was aware of this, but that's instead required to define tests.py as the entry point for the tests (which is the case now, in order to keep consistency with the past).. no harm and more standard anyway :-)
Although, again, this was made to keep coverage sync while finalizing, it is in fact true, so I now decided to drop it. Thx! As said before, we should theoretically be ready to merge to beta now.. would you please put a last eye on the last commits and confirm there's nothing breaking or misleaded in my changes (everything seems fine, but that's my first experience with GH actions and pytest, so better 2 eyes more)? Thank you again, KUTGW! 👍 |
I opened #441 against Also, I found that there is no test for Besides this, all LGTM |
…443) * added coverage.xml to .gitignore * Basic rewrite of the travis tests, with github actions * removed now obsolete travis config * Added bump2version and its config * moved flake8 config to setup.cfg * Formatted requirements with comments * Created test file for each country and moved corresponding tests there * Added pre-commit and a basic config containing black+its config * Added flake8 to pre-commit config and set flake8 to ignore E203 E203 needs to be ignore due to a false positive alert for slicing. See. PyCQA/pycodestyle#373 (comment) * Replaced flake8 tests with pre-commit ones, since flake8 is included * Updated workflow to use tests folder, upload coverage to coveralls.io and some minor fixes * Added pre-commit hook that adds encoding shebang to all files py27 compat * Added coverage config * Added tox+pytest config and added .tox to .gitignore * Added rst checking tools to pre-commit and fixed rst issues * Added workflow dispatch as an option to run the workflow * Removed py35 as was done in https://github.com/dr-prodigy/python-holidays/pull/402 * Added dependabot config to receive automatics update PR's for python runtime dependencies and used github-actions * Fixed pytest config quoting the addopts made them not being recognized properly * Replaced travis with github actions badge * Changed contributing guide to reflect changed tooling * Formatted setup.py again with black * Auto-format, Israel to_jd_gregorianyear fix * requirements_dev.txt review, Israel fixes, CHANGES+README.rst reviews * precommit tasks run * removed python 2.7 checks from github CI/CD scripts * flake8 config fixes * travis build toml dependency fix * removed duplicated flake8 tests from coverage config * old tests.py using new test classes * tests tree reviewed * tests cleanup (warn: coverage report -m needs fixing) * Fixed usage of coveralls with gh-action after 3.0.0 release * more recent tests re-applied - #404 * copyright 2021 * test tree refactoring, pytest running thru tests.py * Flake8 test removed, pyproject.toml cleanup * Added .gitaddtributes file to ensure consistent '\n' line ending for future commits * Added pre-commit hook to enforce '\n' lineending and applied it on all files * Copied files from 'holiday' and 'tests' over and ran 'pre-commit run -a' This should catch all changes on beta which were missing. I left changes which were added in the cleanup of 'unstable' e.g. 'holidays.utils.is_leap_year' 'test/countries/test_saudiarabia.py' was renamed to 'test/countries/test_saudi_arabia.py' to be consistent with 'holidays/countries/saudi_arabia.py' * is_leap_year removal Co-authored-by: s-weigand <s.weigand.phy@gmail.com>
(massive thx+kudos to s-weigand) * added coverage.xml to .gitignore * Basic rewrite of the travis tests, with github actions * removed now obsolete travis config * Added bump2version and its config * moved flake8 config to setup.cfg * Formatted requirements with comments * Created test file for each country and moved corresponding tests there * Added pre-commit and a basic config containing black+its config * Added flake8 to pre-commit config and set flake8 to ignore E203 E203 needs to be ignore due to a false positive alert for slicing. See. PyCQA/pycodestyle#373 (comment) * Replaced flake8 tests with pre-commit ones, since flake8 is included * Updated workflow to use tests folder, upload coverage to coveralls.io and some minor fixes * Added pre-commit hook that adds encoding shebang to all files py27 compat * Added coverage config * Added tox+pytest config and added .tox to .gitignore * Added rst checking tools to pre-commit and fixed rst issues * Added workflow dispatch as an option to run the workflow * Removed py35 as was done in https://github.com/dr-prodigy/python-holidays/pull/402 * Added dependabot config to receive automatics update PR's for python runtime dependencies and used github-actions * Fixed pytest config quoting the addopts made them not being recognized properly * Replaced travis with github actions badge * Changed contributing guide to reflect changed tooling * Formatted setup.py again with black * Auto-format, Israel to_jd_gregorianyear fix * requirements_dev.txt review, Israel fixes, CHANGES+README.rst reviews * precommit tasks run * removed python 2.7 checks from github CI/CD scripts * flake8 config fixes * travis build toml dependency fix * removed duplicated flake8 tests from coverage config * old tests.py using new test classes * tests tree reviewed * tests cleanup (warn: coverage report -m needs fixing) * Fixed usage of coveralls with gh-action after 3.0.0 release * more recent tests re-applied - #404 * copyright 2021 * test tree refactoring, pytest running thru tests.py * Flake8 test removed, pyproject.toml cleanup * Added .gitaddtributes file to ensure consistent '\n' line ending for future commits * Added pre-commit hook to enforce '\n' lineending and applied it on all files * Copied files from 'holiday' and 'tests' over and ran 'pre-commit run -a' This should catch all changes on beta which were missing. I left changes which were added in the cleanup of 'unstable' e.g. 'holidays.utils.is_leap_year' 'test/countries/test_saudiarabia.py' was renamed to 'test/countries/test_saudi_arabia.py' to be consistent with 'holidays/countries/saudi_arabia.py' * is_leap_year removal Co-authored-by: s-weigand <s.weigand.phy@gmail.com>
Final version reviewed and released in beta. |
hi @s-weigand how are you doing?
Any ideas? |
@dr-prodigy Hey, sorry I guess that slipped my attention. version='0.10.5', and only found thus it crashes. I just started a quick fix branch and found another problem. The problem with that extra configuration is that a line would end with With a version = attr: holidays.__version__ |
Here is the long ago promised PR to change the CI-CD from travis to github actions.
As mentioned in #341 I also implemented some other tooling changes:
*.rst
filesLooking at some changes black made (e.g. for holidays/countries/hongkong.py), maybe a different formatter which is more configurable (e.g. yapf) would be better suited for this project.
For the CD to work you need to get an API token from pypi and set it a secret called
pypi_password
(see)After that, you can simply run
And the release is on its way ^^