-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.52 KB
/
test.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
name: Test
on:
workflow_dispatch:
push:
branches:
- main
- dev
pull_request:
branches:
- "**"
jobs:
skip_duplicate:
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5.3.0
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
paths_ignore: '["**/README.md", "CITATION.cff"]'
run_test_pipeline:
needs: skip_duplicate
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup mamba
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge,bioconda,defaults
auto-activate-base: true
activate-environment: ""
- name: Install Snakemake 7.32
run: |
pip install 'snakemake==7.32.4' 'pulp<2.8'
- name: Run test pipeline
run: |
snakemake --snakefile workflow/Snakefile --directory .test --configfile config/config.yaml .test/targets.yaml --use-conda -c1
- name: Pack logs
shell: bash
run: |
tar czf logs.tar.gz .test/output/logs
- name: Upload output file
uses: actions/upload-artifact@v3
with:
name: output-logs
path: logs.tar.gz