-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add github action to check the nix build #1653
Conversation
Is this work in progress or ready to merge? I trust you know what you are doing wrt github actions as I don't :) |
Sorry this is still WIP as some tests are still failing in the nix sandbox. |
cool, no worries :)
|
@pazz & @guludo what do you think about 1359aba? I just removed the broken test, it would also be possible to add some validation code to the read_notmuch_config function to throw that exception again. We are only using the following values from the notmuch config:
so we could also parse these into special values inside |
130f1de
to
a6ac98c
Compare
Looks good to me.
That would make sense. Ideally, |
The related test for the config validation of "synchronize_flags" in tests/settings/test_manager.py was broken since 023cf16, where the parsing of the notmuch config file was migrated from the python configobj based parsing function to loading the notmuch settings including defaults from the notmuch CLI.
The parameter is never used in alot but we have a failing test for it. Instead of fixing the test the parameter is removed.
From my side this is ready for review (and merge). @pazz is it ok to ignore the codeclimate check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not have experience with nix, flake nor github actions but the changes look good and to me, especially the work around the gpg issue. If this fixes the current problems with the CI pipeline then let's go for it! Many thanks!
@@ -72,7 +70,7 @@ def flush(self): | |||
raise DatabaseROError() | |||
if self.writequeue: | |||
# read notmuch's config regarding imap flag synchronization | |||
sync = settings.get_notmuch_setting('maildir', 'synchronize_flags') == 'true' | |||
sync = settings.get_notmuch_setting('maildir', 'synchronize_flags') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
This adds CI jobs to run the nix build of alot and also a second nix target with a ci job to build the sphinx docs.
Some test are fixed or removed, see commit messages. The last question about the fixed test is #1653 (comment)
The plan behind this is that we have some CI that is green until the pip/poetry installation of alot is fixed again and our other CI jobs can be trusted. And also to check that the nix code works correctly because I personally rely on it.