Skip to content

Commit

Permalink
add git action
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Apr 29, 2024
1 parent a968e92 commit 1dcd145
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 71 deletions.
77 changes: 44 additions & 33 deletions .github/workflows/test_pr_nanopore_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
name: Testing nanopore / docker from PR
on:
pull_request:
branches: [ master, dev ]
types: [ opened, synchronize, reopened ]
branches: [master, dev]
types: [opened, synchronize, reopened]

jobs:
run_nextflow:
Expand All @@ -17,35 +17,46 @@ jobs:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKER_PASSWORD }}

steps:

- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Clean environment
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Run tests for nanopore
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile docker \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz"
rm -r work .nextflow*
- name: View results
run: |
sudo apt-get install -y tree
tree TEST_DIR

- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Clean environment
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Run tests for nanopore
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile docker \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz"
rm -r work .nextflow*
- name: Run tests for nanopore (ABI)
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile docker \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz" \
--use_porechop_abi
rm -r work .nextflow*
- name: View results
run: |
sudo apt-get install -y tree
tree TEST_DIR
87 changes: 49 additions & 38 deletions .github/workflows/test_pr_nanopore_singularity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
name: Testing nanopore / singularity from PR
on:
pull_request:
branches: [ master, dev ]
types: [ opened, synchronize, reopened ]
branches: [master, dev]
types: [opened, synchronize, reopened]

jobs:
run_nextflow:
Expand All @@ -17,40 +17,51 @@ jobs:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USER }}
DOCKERHUB_PASS: ${{ secrets.DOCKER_PASSWORD }}

steps:

- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Singularity
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: 3.8.3

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Clean environment
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Run tests for nanopore
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile singularity \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz"
rm -r work .nextflow*
- name: View results
run: |
sudo apt-get install -y tree
tree TEST_DIR

- name: Check out pipeline code
uses: actions/checkout@v2

- name: Install Singularity
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: 3.8.3

- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Clean environment
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Run tests for nanopore
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile singularity \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz"
rm -r work .nextflow*
- name: Run tests for nanopore (ABI)
run: |
wget https://github.com/fmalmeida/test_datasets/raw/main/ecoli_ont_15X.fastq.gz
nextflow run main.nf \
-profile singularity \
--max_cpus 2 \
--output TEST_DIR \
--nanopore_fastq "ecoli_ont_15X.fastq.gz" \
--use_porechop_abi
rm -r work .nextflow*
- name: View results
run: |
sudo apt-get install -y tree
tree TEST_DIR

0 comments on commit 1dcd145

Please sign in to comment.