Skip to content
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

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Add CI profile to run CI build #214

merged 3 commits into from
Nov 7, 2023

Conversation

joverlee521
Copy link
Contributor

@joverlee521 joverlee521 commented Oct 18, 2023

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

  • Checks pass

phylogenetic/README.md Outdated Show resolved Hide resolved
Comment on lines +21 to +24
run: |
nextstrain build \
phylogenetic \
--configfile profiles/ci/builds.yaml
Copy link
Contributor Author

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:

Suggested change
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.

@joverlee521 joverlee521 marked this pull request as ready for review November 7, 2023 23:20
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.
@joverlee521 joverlee521 requested a review from a team November 7, 2023 23:39
@joverlee521
Copy link
Contributor Author

Merging to fix the CI since it's been broken due to rebasing in nextstrain/.github#62.
This lets us avoid depending on WIP commits and still have a stable/working CI workflow while we are still figuring out our new standards on repo organization.

@joverlee521 joverlee521 merged commit ed4a15c into master Nov 7, 2023
4 checks passed
@joverlee521 joverlee521 deleted the add-ci-profile branch November 7, 2023 23:45
j23414 added a commit to nextstrain/dengue that referenced this pull request Jan 5, 2024
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated.
j23414 added a commit to nextstrain/dengue that referenced this pull request Jan 8, 2024
Use the stopgap from mpox (nextstrain/mpox#214) until the pathogen-repo-ci is updated.
j23414 added a commit to nextstrain/zika that referenced this pull request Jan 10, 2024
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
j23414 added a commit to nextstrain/zika that referenced this pull request Jan 10, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants