-
Notifications
You must be signed in to change notification settings - Fork 44
108 lines (98 loc) · 2.72 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#name: My build action requiring more space
#on: push
#
#jobs:
# build:
# name: Build my artifact
# runs-on: ubuntu-latest
# steps:
# - name: Maximize build space
# uses: easimon/maximize-build-space@master
# with:
# root-reserve-mb: 512
# swap-size-mb: 1024
# remove-dotnet: 'true'
# remove-android: 'true'
# remove-haskell: 'true'
# - name: Checkout
# uses: actions/checkout@v2
#
# - name: Build
# run: |
# echo "Free space:"
# df -h
# echo "free space in ${{ github.workspace }}"
# du -hs $(ls -A) ${{ github.workspace }}/*
# rm -rf ${{ github.workspace }}/*
# echo "free space in .test"
# du -hs $(ls -A) .test/*
name: Tests
on:
push:
branches:
- main
pull_request:
branches_ignore: []
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Formatting
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_SNAKEMAKE_SNAKEFMT: true
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Linting
uses: snakemake/snakemake-github-action@v1
with:
directory: .test
snakefile: workflow/Snakefile
args: "--lint"
run-rna-workflow:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Test workflow
uses: snakemake/snakemake-github-action@v1
with:
directory: .test
snakefile: workflow/Snakefile
args: "--use-conda --show-failed-logs --cores 1 --conda-cleanup-pkgs cache --all-temp"
run-3prime-rna-workflow:
runs-on: ubuntu-latest
needs:
- linting
- formatting
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Test 3-prime-workflow
uses: snakemake/snakemake-github-action@v1
with:
directory: .test/3-prime-config
snakefile: workflow/Snakefile
args: "--use-conda --show-failed-logs --cores 1 --conda-cleanup-pkgs cache --all-temp"
# Disable report testing for now since we mark all output files as temporary above.
# TODO: add some kind of test mode to report generation which does not really try to include
# results.
# - name: Test report
# uses: snakemake/snakemake-github-action@v1
# with:
# directory: .test
# snakefile: workflow/Snakefile
# args: "--report report.zip"