Repository navigation
enh: add tomo_process --upgrade and run tests on GitHub Actions - #13
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Non-technical users currently update an installation by running
git stash clear,git stash,git pull,git stash applyso that theirlocal edits (e.g.
EMAILinconfig.sh) survive. This replaces that with asingle command,
tomo_process --upgrade, and adds CI so the shell tests run onevery push and PR.
Changes
tomo_process --upgradetomo_process-upgrade.git pull --ff-only.git stash pop.Upgraded <old> -> <new>orAlready up to date. After an upgrade itreminds the user to run
tomo_process --restart <run_id>for runs in progress.realpathandcdsinto it, so a symlink on
PATHis fine.git stash clear, so other stashes are untouched.git pullfails, local edits are restored and nothing is upgraded.user's changes stay in
git stash listand the message tells them to askthe maintainer. Git leaves conflict markers in the file, so it needs fixing
by hand.
tests/test_tomo_process.shuse throwaway git repos(an origin plus a clone):
--helplists--upgrade.github/workflows/tests.ymlrunsbash tests/run_tests.shon push tomainand on pull requests. The MATLAB tests are skipped there because therunner has no
matlab.Testing
bash tests/test_tomo_process.sh: 16 passed, 0 failed.bash tests/run_tests.sh: all four shell suites pass; MATLAB tests skipped(no
matlablocally).run will be on this PR).
Notes
tomo_processbefore--upgradeexists, so theyneed one last manual
git pull.