-
Notifications
You must be signed in to change notification settings - Fork 163
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 GitHub actions #1617
Use GitHub actions #1617
Conversation
@pazz I just noticed the trouble we had with the python notmuch bindings in CI back on travis. Are you still on the Notmuch mailing list? Can you urge them to publish newer versions of the notmuch2 python bindings to pipy? The page is here:https://pypi.org/project/notmuch/ the maintainer seems to be @weilbith (maybe he will see this) |
d2e1d96
to
f699ad9
Compare
The workflow now runs succesful and shows that the tests currently fail. @pazz I suggest we finish this PR first (refactor, rewrite git hist) and fix the tests later on, what do you think? |
The merge status here on Github is still waiting for CI @ traivs. @pazz maybe you can remove that requirement from the repo settings? |
I've removed the travis requirement now. Some of the new tests seem to fail though? |
d2618f3
to
959341b
Compare
Sorry I fixed the test setup, I think the remaining tests are actual test failure. Two of them are also excluded in the nixpkgs package description, so I assume they have been broken for some time. |
Just checking: https://github.com/pazz/alot/actions/runs/5271916691/jobs/9533462587?pr=1617#step:9:566 (line 565) this one actually looks like the notmuch environment is not set up properly? |
@pazz do you mean this?:
I think this is not a problem with the notmuch setup but with the test itself as the first exception is the missing config file. No idea (yet) why the setup code does not work. I can reproduce this test failure on a fresh ubuntu container using system python with a hand compiled notmuch and notmuch python bindings (similar to the github action) and this test is also excluded in nixpkgs. I assume that notmuch is installed correctly in nixpkgs because I use that distro and never had any problems with alot or notmuch. |
I just added |
Yes, I was referring to a "cannot load config file" error before and your last commit seems to have affected this. There has recently been some PR changing the way alot accesses the notmuch config: 023cf16 |
@pazz which commit do you mean by "your last commit"? 1345f9a is not part of this PR. I put this The last commit in this PR is bd02a58. For the hooks file I added 9b7f855 to the test-config-file In general I would like to not add global config files in the VM/container of |
I don't think this looks too complicated, especially compared to what we had on travis. |
Require python >= 3.7 as we can not test 3.6 in CI
Python 3.7 is end of life since August: https://peps.python.org/pep-0537/#lifespan Python 3.12 is available in github actions.
037b7b4
to
3af7c1d
Compare
Until we can fix the tests we just skip them in order to get a working CI setup.
@pazz I removed support for python 3.7 because this is EOL. Is it ok with you to merge this change together with the CI stuff? I have now reached a point where CI runs but I had to ignore some tests in a hacky way. But I would prefer to have CI with a workaround rather than no CI at all. So I would now merge this. |
Thats fine with me. |
This is to fix #1616
The workflow run can be seen here: https://github.com/pazz/alot/actions?query=branch%3Agithub-actions