Skip to content

Commit

Permalink
Specify CI target in a Snakemake rule
Browse files Browse the repository at this point in the history
Previously, updates to build names prompted tedious changes in
downstream CI usage, such as:

- nextstrain/augur@ef79e16
- nextstrain/docker-base@ebe2e55
- nextstrain/conda-base@2cda9b0

Now, such changes only require updates within this pathogen repo.

Co-authored-by: Jover Lee <joverlee521@gmail.com>
  • Loading branch information
victorlin and joverlee521 committed Apr 25, 2024
1 parent d6f8330 commit b8263d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
ci:
uses: nextstrain/.github/.github/workflows/pathogen-repo-ci.yaml@master
with:
build-args: auspice/avian-flu_h5n1_ha_all-time.json
build-args: test_target
6 changes: 6 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ rule all:
input:
auspice_json = all_targets()

rule test_target:
"""
For testing purposes such as CI workflows.
"""
input: "auspice/avian-flu_h5n1_ha_all-time.json"

rule files:
params:
dropped_strains = "config/dropped_strains_{subtype}.txt",
Expand Down

0 comments on commit b8263d2

Please sign in to comment.