Skip to content

Commit

Permalink
Add test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
suecharo committed Mar 28, 2022
1 parent eccbeca commit 6a0a33d
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-workflow-animal-genome-assembly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test-workflow-animal-genome-assembly

on:
push:
branches:
- main
paths:
- "workflow/animal-genome-assembly/**/*.cwl"
- "workflow/animal-genome-assembly/**/*.yml"
schedule:
- cron: "00 04 1 */6 *"
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Download gh-trs binary from release"
run: |
curl -fsSL -O https://github.com/suecharo/gh-trs/releases/latest/download/gh-trs
chmod +x ./gh-trs
- name: "Run test"
id: "run-test"
run: |
mkdir -p ./test-logs
SAPPORO_RUN_DIR=${GITHUB_WORKSPACE}/test-results \
./gh-trs test --verbose https://raw.githubusercontent.com/pitagora-network/DAT2-cwl/main/workflow/animal-genome-assembly/yevis-config.yml 2>&1 \
| tee ./test-logs/gh-trs.log
exit ${PIPESTATUS[0]}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "List test results"
run: ls -lR ./test-results > ./test-logs/test-results-list.txt

- name: "Upload test logs"
uses: actions/upload-artifact@v2
with:
name: gh-trs-test-logs
path: test-logs/*
if-no-files-found: ignore

- name: "Check test status"
if: ${{ steps.run-test.outcome != 'success' }}
run: exit 1
47 changes: 47 additions & 0 deletions .github/workflows/test-workflow-epigenome-bs-seq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test-workflow-epigenome-bs-seq

on:
push:
branches:
- main
paths:
- "workflow/epigenome-bs-seq/**/*.cwl"
- "workflow/epigenome-bs-seq/**/*.yml"
schedule:
- cron: "00 04 1 */6 *"
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Download gh-trs binary from release"
run: |
curl -fsSL -O https://github.com/suecharo/gh-trs/releases/latest/download/gh-trs
chmod +x ./gh-trs
- name: "Run test"
id: "run-test"
run: |
mkdir -p ./test-logs
SAPPORO_RUN_DIR=${GITHUB_WORKSPACE}/test-results \
./gh-trs test --verbose https://raw.githubusercontent.com/pitagora-network/DAT2-cwl/main/workflow/epigenome-bs-seq/yevis-config.yml 2>&1 \
| tee ./test-logs/gh-trs.log
exit ${PIPESTATUS[0]}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "List test results"
run: ls -lR ./test-results > ./test-logs/test-results-list.txt

- name: "Upload test logs"
uses: actions/upload-artifact@v2
with:
name: gh-trs-test-logs
path: test-logs/*
if-no-files-found: ignore

- name: "Check test status"
if: ${{ steps.run-test.outcome != 'success' }}
run: exit 1
47 changes: 47 additions & 0 deletions .github/workflows/test-workflow-epigenome-chip-seq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test-workflow-epigenome-chip-seq

on:
push:
branches:
- main
paths:
- "workflow/epigenome-chip-seq/**/*.cwl"
- "workflow/epigenome-chip-seq/**/*.yml"
schedule:
- cron: "00 04 1 */6 *"
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Download gh-trs binary from release"
run: |
curl -fsSL -O https://github.com/suecharo/gh-trs/releases/latest/download/gh-trs
chmod +x ./gh-trs
- name: "Run test"
id: "run-test"
run: |
mkdir -p ./test-logs
SAPPORO_RUN_DIR=${GITHUB_WORKSPACE}/test-results \
./gh-trs test --verbose https://raw.githubusercontent.com/pitagora-network/DAT2-cwl/main/workflow/epigenome-chip-seq/yevis-config.yml 2>&1 \
| tee ./test-logs/gh-trs.log
exit ${PIPESTATUS[0]}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "List test results"
run: ls -lR ./test-results > ./test-logs/test-results-list.txt

- name: "Upload test logs"
uses: actions/upload-artifact@v2
with:
name: gh-trs-test-logs
path: test-logs/*
if-no-files-found: ignore

- name: "Check test status"
if: ${{ steps.run-test.outcome != 'success' }}
run: exit 1
47 changes: 47 additions & 0 deletions .github/workflows/test-workflow-rna-seq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test-workflow-rna-seq

on:
push:
branches:
- main
paths:
- "workflow/rna-seq/**/*.cwl"
- "workflow/rna-seq/**/*.yml"
schedule:
- cron: "00 04 1 */6 *"
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Download gh-trs binary from release"
run: |
curl -fsSL -O https://github.com/suecharo/gh-trs/releases/latest/download/gh-trs
chmod +x ./gh-trs
- name: "Run test"
id: "run-test"
run: |
mkdir -p ./test-logs
SAPPORO_RUN_DIR=${GITHUB_WORKSPACE}/test-results \
./gh-trs test --verbose https://raw.githubusercontent.com/pitagora-network/DAT2-cwl/main/workflow/rna-seq/yevis-config.yml 2>&1 \
| tee ./test-logs/gh-trs.log
exit ${PIPESTATUS[0]}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "List test results"
run: ls -lR ./test-results > ./test-logs/test-results-list.txt

- name: "Upload test logs"
uses: actions/upload-artifact@v2
with:
name: gh-trs-test-logs
path: test-logs/*
if-no-files-found: ignore

- name: "Check test status"
if: ${{ steps.run-test.outcome != 'success' }}
run: exit 1
47 changes: 47 additions & 0 deletions .github/workflows/test-workflow-transcriptome-assembly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: test-workflow-transcriptome-assembly

on:
push:
branches:
- main
paths:
- "workflow/transcriptome-assembly/**/*.cwl"
- "workflow/transcriptome-assembly/**/*.yml"
schedule:
- cron: "00 04 1 */6 *"
workflow_dispatch: {}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Download gh-trs binary from release"
run: |
curl -fsSL -O https://github.com/suecharo/gh-trs/releases/latest/download/gh-trs
chmod +x ./gh-trs
- name: "Run test"
id: "run-test"
run: |
mkdir -p ./test-logs
SAPPORO_RUN_DIR=${GITHUB_WORKSPACE}/test-results \
./gh-trs test --verbose https://raw.githubusercontent.com/pitagora-network/DAT2-cwl/main/workflow/transcriptome-assembly/yevis-config.yml 2>&1 \
| tee ./test-logs/gh-trs.log
exit ${PIPESTATUS[0]}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "List test results"
run: ls -lR ./test-results > ./test-logs/test-results-list.txt

- name: "Upload test logs"
uses: actions/upload-artifact@v2
with:
name: gh-trs-test-logs
path: test-logs/*
if-no-files-found: ignore

- name: "Check test status"
if: ${{ steps.run-test.outcome != 'success' }}
run: exit 1

0 comments on commit 6a0a33d

Please sign in to comment.