-
Notifications
You must be signed in to change notification settings - Fork 19
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 CI profile to run CI build #214
Conversation
daf015e
to
f59e835
Compare
f59e835
to
5e4c4a1
Compare
run: | | ||
nextstrain build \ | ||
phylogenetic \ | ||
--configfile profiles/ci/builds.yaml |
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 realized today that we don't need the CI profile since we can copy over the example data here:
run: | | |
nextstrain build \ | |
phylogenetic \ | |
--configfile profiles/ci/builds.yaml | |
run: | | |
mkdir -p phylogenetic/data; | |
cp -r -v phylogenetic/example_data/* phylogenetic/data/; | |
nextstrain build phylogenetic |
However, it's still nice to be able to run the example build with the single nextstrain build
command, so I'm keeping it.
Implements the same method used in ncov¹ and seasonal-flu² for allowing users to add custom rules to the Snakemake workflow. This will be used in subsequent commits to add custom rules for Nextstrain CI workflow that are not required to run the core ingest workflow. ¹ https://github.com/nextstrain/ncov/blob/a29a3b2d98b0835444a88c819925fae07ac9b826/Snakefile#L175-L177 ² https://github.com/nextstrain/seasonal-flu/blob/06865c26a2d972252fde15735d001eaec261126f/Snakefile#L40-L42
Adds custom rule to copy over the example data to be able to run the build with example data. This allows users to run the example build without having to manually copy over the data.
Since the `pathogen-repo-ci` workflow does not allow for custom build directories, use the `pathogen-repo-build` workflow instead.
5e4c4a1
to
b9b677f
Compare
Merging to fix the CI since it's been broken due to rebasing in nextstrain/.github#62. |
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated.
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated.
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated. However, we may be moving to using config/customization/ci in the future, so revisit this commit and edit accordingly. nextstrain/pathogen-repo-guide#24
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated. However, we may be moving to using config/customization/ci in the future, so revisit this commit and edit accordingly. nextstrain/pathogen-repo-guide#24
Description of proposed changes
This is an alternative to nextstrain/.github#62, where we migrate the CI job to use pathogen-repo-build workflow instead of the pathogen-repo-ci workflow.
Checklist