-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (35 loc) · 948 Bytes
/
Copy pathcache.yml
File metadata and controls
40 lines (35 loc) · 948 Bytes
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
# Cache .snakemake/conda each sunday / monday night
---
name: Cache conda packages weekly
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
env:
CACHE_NUMBER: 0 # Increment this number to invalidate the cache
jobs:
weekly-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Set up cache
uses: actions/cache@v4
with:
path: |
.snakemake/conda
~/.cache/pre-commit/
key: snakemake-conda-${{ env.CACHE_NUMBER }}
id: cache
- name: Download environments
uses: snakemake/snakemake-github-action@v1.25.1
with:
directory: .
snakefile: workflow/Snakefile
args: >
--use-conda
--conda-create-envs-only
--conda-frontend mamba
--cores 1