-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.66 KB
/
test-build.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-build
on: pull_request
jobs:
run-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Restore GCS cache
uses: actions/cache/restore@v3
with:
path: gcs_cache
# Change this key if you ever want to force clear the cache.
key: gcs_cache_20230512
- name: Restore results cache
uses: actions/cache/restore@v3
with:
path: malariagen_data_cache
# Change this key if you ever want to force clear the cache.
key: results_cache_20230512
- name: Install conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
environment-name: selection-atlas
cache-downloads: true
- name: Run analysis snakemake workflow
shell: bash -l {0}
run: |
snakemake -c1 --configfile ci/config.yaml --snakefile workflow/Snakefile-analysis
- name: Run site build snakemake workflow
shell: bash -l {0}
run: |
snakemake -c1 --configfile ci/config.yaml --snakefile workflow/Snakefile-site-build
- name: Save GCS cache
uses: actions/cache/save@v3
if: always()
with:
path: gcs_cache
# Change this key if you ever want to force clear the cache.
key: gcs_cache_20230512
- name: Save results cache
uses: actions/cache/save@v3
if: always()
with:
path: malariagen_data_cache
# Change this key if you ever want to force clear the cache.
key: results_cache_20230512