Skip to content

Commit

Permalink
Add CI workflow and configs [#2]
Browse files Browse the repository at this point in the history
  • Loading branch information
genehack committed Nov 21, 2024
1 parent 59999fb commit ef81bc9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
ci:
uses: nextstrain/.github/.github/workflows/pathogen-repo-ci.yaml@master
6 changes: 6 additions & 0 deletions ingest/build-configs/ci/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
custom_rules:
- "build-configs/ci/copy_example_data.smk"

# Snakemake requires at least one top level key in a config file, so including
# a bogus key here that should not be used anywhere in the Snakemake workflow
bogus_ci_config: "bogus_ci_config"
12 changes: 12 additions & 0 deletions ingest/build-configs/ci/copy_example_data.smk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rule copy_example_data:
input:
ncbi_dataset="example_data/ncbi_dataset.zip"
output:
ncbi_dataset=temp("data/ncbi_dataset.zip")
shell:
"""
cp -f {input.ncbi_dataset} {output.ncbi_dataset}
"""

# force this rule over NCBI data fetch
ruleorder: copy_example_data > fetch_ncbi_dataset_package

0 comments on commit ef81bc9

Please sign in to comment.