Skip to content

Commit

Permalink
Merge pull request #76 from nextstrain/refactor-workflow
Browse files Browse the repository at this point in the history
Refactor workflow
  • Loading branch information
joverlee521 authored Mar 31, 2023
2 parents fa7a3d3 + 8bdf310 commit d2ce80e
Show file tree
Hide file tree
Showing 154 changed files with 13,814 additions and 5,341 deletions.
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/flu_seasonal_h3n2_ha_12y.json auspice/flu_seasonal_h3n2_ha_12y_tip-frequencies.json
build-args: --configfile profiles/ci/builds.yaml -p
32 changes: 32 additions & 0 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload data from fauna to S3

# Only support manual trigger of this workflow.
on: workflow_dispatch

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: refactor-workflow
# Install Nextstrain CLI, so we can run the flu workflow.
- uses: nextstrain/.github/actions/setup-nextstrain-cli@master
# Run the flu workflow that downloads titers and sequences from fauna and
# uploads to S3.
- name: Download from fauna and upload to S3
run: |
set -x
nextstrain build \
--docker \
. \
-j 4 \
upload_all_titers \
upload_all_sequences \
--configfile profiles/upload.yaml
env:
RETHINK_HOST: ${{ secrets.RETHINK_HOST }}
RETHINK_AUTH_KEY: ${{ secrets.RETHINK_AUTH_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Files created by the pipeline, which we want to keep out of git
# (or at least out of _this_ git repo).
data/
builds/
results/
auspice/
auspice-who/
auspice_renamed/
build/
logs/
figures/
Expand Down Expand Up @@ -51,3 +53,7 @@ nohup.out

# cluster logs
slurm-*

# Jupyter/Altair droppings
.ipynb_checkpoints
geckodriver.log
Loading

0 comments on commit d2ce80e

Please sign in to comment.