-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (69 loc) · 2.05 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
---
name: Tests
on:
push:
branches: [master, development]
pull_request:
branches: [master, development]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: docs/environment.yml
environment-name: sphinx
- name: Run sphinx
shell: bash -l {0}
run: |
cd docs && make html
Formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Formatting
uses: super-linter/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_PYTHON_FLAKE8: true
PYTHON_FLAKE8_CONFIG_FILE: .flake8
VALIDATE_JSON: true
VALIDATE_YAML: true
YAML_CONFIG_FILE: .yamllint.yml
VALIDATE_SNAKEMAKE_SNAKEFMT: true
VALIDATE_R: true
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint workflow
uses: snakemake/snakemake-github-action@v1
with:
directory: .
snakefile: workflow/Snakefile
args: "--lint --configfile config/example_config.yaml --config skip_version_check=True"
# Testing:
# runs-on: ubuntu-latest
# needs:
# - Linting
# - Formatting
# steps:
# - uses: actions/checkout@v2
# - name: Test workflow
# uses: snakemake/[email protected]
# with:
# directory: .test
# snakefile: workflow/Snakefile
# args: "--configfile config/example_config.yaml --use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache"
# - name: Test report
# uses: snakemake/[email protected]
# with:
# directory: .test
# snakefile: workflow/Snakefile
# args: "--configfile config/example_config.yaml --report report.zip"