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 AWS megatest GHA #154

Merged
merged 14 commits into from
Mar 12, 2020
Merged
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 21 additions & 22 deletions .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
name: nf-core aws test
name: AWS Megatests
# This workflow is triggered on PRs to the master branch.
# It runs the -profile 'test' on AWS batch

on:
pull_request:
branches:
- master
- 'master'
release:
types: [published]

jobs:
Awstest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.7']
steps:
- uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install aws client
run: conda install -c conda-forge awscli
- name: Start AWS batch job
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_KEY_SECRET}}
TOWER_ACCESS_TOKEN: ${{secrets.TOWER_ACCESS_TOKEN}}
run: |
aws batch submit-job --region eu-west-1 --job-name nf-core-sarek --job-queue 'default-8b3836e0-5eda-11ea-96e5-0a2c3f6a2a32' --job-definition nextflow --container-overrides command=nf-core/sarek,"-r ${GITHUB_SHA} -profile test --outdir s3://nf-core-awsmegatests/sarek/results-${GITHUB_SHA} -w s3://nf-core-awsmegatests/sarek/work-${GITHUB_SHA}"
run-awstest:
name: Run AWS test
runs-on: ubuntu-latest
steps:
- name: Setup Miniconda
uses: goanpeca/setup-miniconda@v1.0.2
with:
auto-update-conda: true
python-version: 3.7
- name: Install awscli
run: conda install -c conda-forge awscli
- name: Start AWS batch job
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_KEY_SECRET}}
TOWER_ACCESS_TOKEN: ${{secrets.TOWER_ACCESS_TOKEN}}
run: |
aws batch submit-job --region eu-west-1 --job-name nf-core-sarek --job-queue 'default-8b3836e0-5eda-11ea-96e5-0a2c3f6a2a32' --job-definition nextflow --container-overrides command=nf-core/sarek,"-r ${GITHUB_SHA} -profile test --outdir s3://nf-core-awsmegatests/sarek/results-${GITHUB_SHA} -w s3://nf-core-awsmegatests/sarek/work-${GITHUB_SHA}"