-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.36 KB
/
install.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
name: Install
on: [push, pull_request]
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/[email protected]
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
Install:
needs: skip_duplicate
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create environments
uses: snakemake/snakemake-github-action@v1
with:
directory: ".test"
snakefile: "workflow/Snakefile"
args: "--configfile config/config.yaml config/report.yaml .test/targets.yaml --cores 1 --conda-create-envs-only --use-conda"
Dry_run:
needs: skip_duplicate
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Dry run
uses: snakemake/snakemake-github-action@v1
with:
directory: ".test"
snakefile: "workflow/Snakefile"
args: "--configfile config/config.yaml config/report.yaml .test/targets.yaml --dry-run"